|
|
@ -10,7 +10,7 @@ declare type DetectionSpansResponse = { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
export async function getDetectionSpans(ctx: Router.IRouterContext) { |
|
|
|
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 === '') { |
|
|
|
if(id === undefined || id === '') { |
|
|
|
throw new Error('analyticUnitId (id) is missing'); |
|
|
|
throw new Error('analyticUnitId (id) is missing'); |
|
|
|
} |
|
|
|
} |
|
|
|