Reverse order

This commit is contained in:
Christopher Cookman 2024-11-13 19:18:14 -07:00
parent 09366a9eb5
commit f3bc5e2913

View file

@ -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)