diff --git a/src/shared/db/IncidentRepository.ts b/src/shared/db/IncidentRepository.ts index 262c493f80..867954b36c 100644 --- a/src/shared/db/IncidentRepository.ts +++ b/src/shared/db/IncidentRepository.ts @@ -16,7 +16,8 @@ class IncidentRepository extends Repository { } private static getSearchCriteria(options: SearchOptions): any { - const statusFilter = options.status !== IncidentFilter.all ? [{ status: options.status }] : [] + const statusFilter = + options.status !== IncidentFilter.all ? [{ 'data.status': options.status }] : [] const selector = { $and: statusFilter, }