This commit is contained in:
2026-04-08 14:45:26 +04:00
parent 1434330545
commit c74ee9856e
3 changed files with 25 additions and 10 deletions
+2 -2
View File
@@ -169,11 +169,11 @@ export const ingest = new Elysia()
: { kind: "down", monitor: monitorCtx, ping: pingCtx };
// Suppress the synthetic "up" on a brand-new monitor (no prior state).
if (!(body.up && prevState === null)) {
void dispatchForMonitor(monitor_check.id, event);
dispatchForMonitor(monitor_check.id, event).catch((e) => console.warn("[notify] dispatch escaped:", e));
}
}
if (certEvent && days != null) {
void dispatchForMonitor(monitor_check.id, { kind: "cert", monitor: monitorCtx, days });
dispatchForMonitor(monitor_check.id, { kind: "cert", monitor: monitorCtx, days }).catch((e) => console.warn("[notify] cert dispatch escaped:", e));
}
return { ok: true };