|
|
@ -103,7 +103,7 @@ async function createUnit(ctx: Router.IRouterContext) { |
|
|
|
|
|
|
|
|
|
|
|
async function setAlert(ctx: Router.IRouterContext) { |
|
|
|
async function setAlert(ctx: Router.IRouterContext) { |
|
|
|
try { |
|
|
|
try { |
|
|
|
const { analyticUnitId, alert } = ctx.request.query as { |
|
|
|
const { analyticUnitId, alert } = ctx.request.body as { |
|
|
|
analyticUnitId: AnalyticUnit.AnalyticUnitId, alert: boolean |
|
|
|
analyticUnitId: AnalyticUnit.AnalyticUnitId, alert: boolean |
|
|
|
}; |
|
|
|
}; |
|
|
|
if(analyticUnitId === undefined) { |
|
|
|
if(analyticUnitId === undefined) { |
|
|
|