Reverse order
This commit is contained in:
parent
09366a9eb5
commit
f3bc5e2913
2
index.js
2
index.js
|
@ -28,7 +28,7 @@ kuma.status(process.env.STATUSPAGE).then((status) => {
|
||||||
for (let monitor of x.monitors) {
|
for (let monitor of x.monitors) {
|
||||||
totalCount++; // Increment total services count
|
totalCount++; // Increment total services count
|
||||||
// Check if the service is online
|
// Check if the service is online
|
||||||
if (monitor.heartbeats[0].status) {
|
if (monitor.heartbeats.slice().status) {
|
||||||
onlineCount++; // Increment online services count
|
onlineCount++; // Increment online services count
|
||||||
} else {
|
} else {
|
||||||
offline.push(monitor.name)
|
offline.push(monitor.name)
|
||||||
|
|
Loading…
Reference in a new issue