mirror of
https://github.com/louislam/uptime-kuma.git
synced 2026-08-07 09:14:58 +00:00
fix: RSS service status description is wrong (#7641)
This commit is contained in:
@@ -292,16 +292,16 @@ class StatusPage extends BeanModel {
|
||||
}
|
||||
}
|
||||
|
||||
// keep only DOWN heartbeats in the RSS feed
|
||||
heartbeats = heartbeats.filter((heartbeat) => heartbeat.status === DOWN);
|
||||
|
||||
// calculate RSS feed description
|
||||
let status = StatusPage.overallStatus(heartbeats);
|
||||
let statusDescription = StatusPage.getStatusDescription(status);
|
||||
|
||||
// keep only DOWN heartbeats in the RSS feed
|
||||
const downHeartbeats = heartbeats.filter((heartbeat) => heartbeat.status === DOWN);
|
||||
|
||||
return {
|
||||
incidents,
|
||||
heartbeats,
|
||||
heartbeats: downHeartbeats,
|
||||
statusDescription,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user