Browse Source

Minor fix of PATCH /analyticUnits/alert

pull/1/head
rozetko 6 years ago
parent
commit
ca1ce4610a
  1. 2
      server/src/routes/analytic_units_router.ts

2
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) {

Loading…
Cancel
Save