diff --git a/server/src/routes/analytic_units_router.ts b/server/src/routes/analytic_units_router.ts index 252cf3f..4c8a055 100644 --- a/server/src/routes/analytic_units_router.ts +++ b/server/src/routes/analytic_units_router.ts @@ -103,7 +103,7 @@ async function createUnit(ctx: Router.IRouterContext) { async function setAlert(ctx: Router.IRouterContext) { try { - const { analyticUnitId, alert } = ctx.request.query as { + const { analyticUnitId, alert } = ctx.request.body as { analyticUnitId: AnalyticUnit.AnalyticUnitId, alert: boolean }; if(analyticUnitId === undefined) {