@ -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');
@ -7,7 +7,7 @@ import * as Router from 'koa-router';
export async function getSegments(ctx: Router.IRouterContext) {