Skip to content

Commit

Permalink
fix: also show intermediate warnings in activation log AB#25984
Browse files Browse the repository at this point in the history
  • Loading branch information
jannisvisser committed Jan 22, 2024
1 parent eb0e630 commit e5c5da7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/API-service/src/api/event/event.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,12 @@ export class EventService {
'case when event.closed = true then event."endDate" end as "endDate"',
'disaster."actionsUnit" as "exposureIndicator"',
'event."actionsValue" as "exposureValue"',
`CASE event."triggerValue" WHEN 1 THEN 'maximum' WHEN 0.7 THEN 'medium' WHEN 0.3 THEN 'minimum' END as "triggerValue"`,
`CASE event."triggerValue" WHEN 1 THEN 'Trigger/alert' WHEN 0.7 THEN 'Medium warning' WHEN 0.3 THEN 'Low warning' END as "alertClass"`,
'event."eventPlaceCodeId" as "databaseId"',
])
.leftJoin('event.adminArea', 'area')
.leftJoin('event.disasterType', 'disaster')
.where({ thresholdReached: true })
.where({ triggerValue: MoreThan(0) })
.orderBy('event."startDate"', 'DESC')
.addOrderBy('area."countryCodeISO3"', 'ASC')
.addOrderBy('event."disasterType"', 'ASC')
Expand Down

0 comments on commit e5c5da7

Please sign in to comment.