fix 2
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user