Openstatus www.openstatus.dev
6
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ› fixing bug (#1023)

* ๐Ÿ› fixing bug

* ci: apply automated fixes

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>

authored by

Thibault Le Ouay
autofix-ci[bot]
and committed by
GitHub
16f24593 e715415b

+14 -1
+11
apps/checker/handlers/checker.go
··· 222 222 CronTimestamp: req.CronTimestamp, 223 223 }) 224 224 } 225 + 226 + // This happens when we don't have a degradedAfter 227 + if isSuccessfull && req.DegradedAfter == 0 { 228 + checker.UpdateStatus(ctx, checker.UpdateData{ 229 + MonitorId: req.MonitorID, 230 + Status: "active", 231 + Region: h.Region, 232 + StatusCode: res.Status, 233 + CronTimestamp: req.CronTimestamp, 234 + }) 235 + } 225 236 } 226 237 227 238 if req.Status == "degraded" {
+3 -1
apps/server/src/checker/index.ts
··· 179 179 message, 180 180 notifType: "alert", 181 181 cronTimestamp, 182 - incidentId: String(newIncident[0].id), 182 + incidentId: newIncident.length 183 + ? String(newIncident[0]?.id) 184 + : `${cronTimestamp}`, 183 185 }); 184 186 185 187 if (newIncident.length > 0) {