diff --git a/server/src/routes/detections_router.ts b/server/src/routes/detections_router.ts index 84ade36..0f6f53d 100644 --- a/server/src/routes/detections_router.ts +++ b/server/src/routes/detections_router.ts @@ -10,7 +10,7 @@ declare type DetectionSpansResponse = { } export async function getDetectionSpans(ctx: Router.IRouterContext) { - const id = ctx.request.query.id as AnalyticUnitId; + const id = ctx.request.query.id as string; if(id === undefined || id === '') { throw new Error('analyticUnitId (id) is missing'); } diff --git a/server/src/routes/segments_router.ts b/server/src/routes/segments_router.ts index 6dc4a64..79736d7 100644 --- a/server/src/routes/segments_router.ts +++ b/server/src/routes/segments_router.ts @@ -7,7 +7,7 @@ import * as Router from 'koa-router'; export async function getSegments(ctx: Router.IRouterContext) { - const id = ctx.request.query.id as AnalyticUnitId; + const id = ctx.request.query.id as string; if(id === undefined || id === '') { throw new Error('analyticUnitId (id) is missing'); }