Browse Source

typescript bugfix & adjusted requirements version

pull/1/head
ga63fuv 4 years ago
parent
commit
50a4b3e297
  1. 2
      server/src/routes/analytic_units_router.ts

2
server/src/routes/analytic_units_router.ts

@ -58,7 +58,7 @@ async function createUnit(ctx: Router.IRouterContext) {
}
async function updateUnit(ctx: Router.IRouterContext) {
const analyticUnitObj = ctx.request.body as AnalyticUnit.AnalyticUnit;
const analyticUnitObj = ctx.request.body as unknown as AnalyticUnit.AnalyticUnit;
if(analyticUnitObj.id === undefined) {
throw new Error('Cannot update undefined id');
}

Loading…
Cancel
Save