incidents repo and data reversal

This commit is contained in:
Alex Holliday committed 2026-01-06 20:49:06 +00:00
1 parent 605b4713af
commit 51081a6a0e
32 files changed
+537 -241

No files matched your search

@@ -1,5 +1,5 @@
import { INotificationChannel, IIncident } from "@/db/models/index.js";
import type { Monitor } from "@/types/domain/index.js";
import { INotificationChannel } from "@/db/models/index.js";
import type { Monitor, Incident } from "@/types/domain/index.js";
import { IAlert, IMessageService } from "./IMessageService.js";
import got from "got";
import ApiError from "@/utils/ApiError.js";
@@ -49,7 +49,7 @@ class DiscordService implements IMessageService {
};
};
buildAlert = (monitor: Monitor, incident: IIncident) => {
buildAlert = (monitor: Monitor, incident: Incident) => {
const name = monitor?.name || "Unnamed monitor";
const monitorStatus = monitor?.status || "unknown status";
const url = monitor?.url || "no URL";