Skip to content

Commit ecdd717

Browse files
committed
feat: add description field to event processing in TransformerV2
1 parent f1c69e9 commit ecdd717

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Services/Status.Trans.V2.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ export function TransformerV2({ Components, Events }: { Components: StatusEntity
140140
Status: IsIncident(type) ? EventStatus.Analysing : EventStatus.Planned,
141141
Histories: new Set(),
142142
RegionServices: new Set(),
143+
Description: event.description
143144
};
144145

145146
if (event.end_date) {
@@ -237,6 +238,7 @@ export function TransformerV2({ Components, Events }: { Components: StatusEntity
237238

238239
if (dbEvent.End &&
239240
!IsIncident(type) &&
241+
dbEvent.Status !== EventStatus.Cancelled &&
240242
dayjs(dbEvent.End).isBefore(dayjs())) {
241243
dbEvent.Status = EventStatus.Completed;
242244
}

0 commit comments

Comments
 (0)