Skip to content

Open-source status page, incident response and uptime monitoring

🚑 (#589)

Thibault Le Ouayc93f038370ed
diff --git a/apps/server/src/checker/index.ts b/apps/server/src/checker/index.ts
index 24fc47e36..4e2f198db 100644
--- a/apps/server/src/checker/index.ts
+++ b/apps/server/src/checker/index.ts
@@ -58,7 +58,7 @@ checkerRoute.post("/updateStatus", async (c) => {
);
// if we are in error
- if (statusCode && statusCode < 200 && statusCode > 300) {
+ if (!statusCode || (statusCode < 200 && statusCode > 300)) {
// create incident
// trigger alerting
await checkerAudit.publishAuditLog({
@@ -114,7 +114,7 @@ checkerRoute.post("/updateStatus", async (c) => {
}
}
}
-
+ // When the status is ok
if (statusCode && statusCode >= 200 && statusCode < 300) {
await upsertMonitorStatus({
monitorId: monitorId,