Skip to content

Open-source status page, incident response and uptime monitoring

🚑 (#590)

Thibault Le Ouay4fdac550f068
diff --git a/apps/server/src/checker/index.ts b/apps/server/src/checker/index.ts
index 4e2f198db..8a5f4c638 100644
--- a/apps/server/src/checker/index.ts
+++ b/apps/server/src/checker/index.ts
@@ -55,8 +55,8 @@ checkerRoute.post("/updateStatus", async (c) => {
isNotNull(incidentTable.resolvedAt),
isNotNull(incidentTable.acknowledgedAt),
),
- );
-
+ )
+ .get();
// if we are in error
if (!statusCode || (statusCode < 200 && statusCode > 300)) {
// create incident
@@ -78,7 +78,7 @@ checkerRoute.post("/updateStatus", async (c) => {
region: region,
});
- if (!incident) {
+ if (incident === undefined) {
const redisKey = `${monitorId}-${cronTimestamp}-error`;
// We add the new region to the set
await redis.sadd(redisKey, region);