From f3bc5e2913f3a33bbe6e22443ca5019b1669a22d Mon Sep 17 00:00:00 2001 From: ChrisChrome Date: Wed, 13 Nov 2024 19:18:14 -0700 Subject: [PATCH] Reverse order --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 7a658d4..97403bb 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ kuma.status(process.env.STATUSPAGE).then((status) => { for (let monitor of x.monitors) { totalCount++; // Increment total services count // Check if the service is online - if (monitor.heartbeats[0].status) { + if (monitor.heartbeats.slice().status) { onlineCount++; // Increment online services count } else { offline.push(monitor.name)