Skip to content

Open-source status page, incident response and uptime monitoring

🚑 fix autoresolve (#743)

Thibault Le Ouay5671c4b633fd
diff --git a/apps/server/src/checker/index.ts b/apps/server/src/checker/index.ts
index e5b084a0f..8ab047e08 100644
--- a/apps/server/src/checker/index.ts
+++ b/apps/server/src/checker/index.ts
@@ -151,7 +151,7 @@ checkerRoute.post("/updateStatus", async (c) => {
});
if (incident) {
- const redisKey = `${monitorId}-${cronTimestamp}-resolved`;
+ const redisKey = `${monitorId}-${incident.id}-resolved`;
// // We add the new region to the set
await redis.sadd(redisKey, region);
// // let's add an expire to the set