From 50a4b3e297a2cf7bfd0205bd67f2a7c5b6284bf7 Mon Sep 17 00:00:00 2001 From: ga63fuv Date: Fri, 18 Jun 2021 10:38:56 +0200 Subject: [PATCH] typescript bugfix & adjusted requirements version --- 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 4d392c5..c455d20 100644 --- a/server/src/routes/analytic_units_router.ts +++ b/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'); }