fix: RSS service status description is wrong (#7641)

This commit is contained in:
Louis Lam
2026-07-29 22:47:21 +08:00
committed by GitHub
parent 8620cf7e00
commit ce32b1db48
+4 -4
View File
@@ -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,
};
}