diff --git a/server/src/migrations.ts b/server/src/migrations.ts index f814928..498e03a 100644 --- a/server/src/migrations.ts +++ b/server/src/migrations.ts @@ -138,7 +138,7 @@ function getDetectorByType(analyticUnitType: string): string { let detector; _.forOwn(analyticUnitTypesMapping, (types, detectorType) => { - if(types.includes(analyticUnitType)) { + if(_.includes(types, analyticUnitType)) { detector = detectorType; } });