Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
fix(incidents): fix find all incidents
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Jun 29, 2020
1 parent 978788e commit aabd33e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/db/IncidentRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ class IncidentRepository extends Repository<Incident> {
}

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,
}
Expand Down

0 comments on commit aabd33e

Please sign in to comment.