diff --git a/index.html b/index.html index f8eb70c..0477169 100644 --- a/index.html +++ b/index.html @@ -17,6 +17,12 @@ + + diff --git a/src/Services/Status.Entities.ts b/src/Services/Status.Entities.ts index c58a7f1..34009c6 100644 --- a/src/Services/Status.Entities.ts +++ b/src/Services/Status.Entities.ts @@ -34,6 +34,7 @@ export interface IncidentEntityV2 { impact: number; start_date: string; updates?: UpdateEntityV2[]; + type: string; } interface UpdateEntityV2 { diff --git a/src/Services/Status.Trans.V2.ts b/src/Services/Status.Trans.V2.ts index 24c7985..67d323d 100644 --- a/src/Services/Status.Trans.V2.ts +++ b/src/Services/Status.Trans.V2.ts @@ -1,6 +1,6 @@ import dayjs from "dayjs"; import { orderBy } from "lodash"; -import { EventStatus, GetEventType, IsIncident } from "~/Components/Event/Enums"; +import { EventStatus, EventType, GetEventType, IsIncident } from "~/Components/Event/Enums"; import { Logger } from "~/Helpers/Logger"; import { EmptyDB } from "./Status"; import { IncidentEntityV2, NameEnum, StatusEntityV2, StatusEnum } from "./Status.Entities"; @@ -126,7 +126,11 @@ export function TransformerV2({ Components, Events }: { Components: StatusEntity continue } - const type = GetEventType(event.impact); + let type = GetEventType(event.impact); + + if (event.type === "info") { + type = EventType.Information; + } const dbEvent: Models.IEvent = { Id: event.id,