From ca1ce4610aa7a77bee18d58432455e08010478d5 Mon Sep 17 00:00:00 2001 From: rozetko Date: Thu, 6 Dec 2018 15:59:52 +0300 Subject: [PATCH] Minor fix of PATCH /analyticUnits/alert --- server/src/routes/analytic_units_router.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {