mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-06-19 10:46:48 +02:00
Update server/routers/status-page-router.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
9e0786272f
commit
5e64226a63
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ router.get("/api/status-page/heartbeat/:slug", cache("1 minutes"), async (reques
|
||||||
let heartbeatBarDays = statusPage ? (statusPage.heartbeat_bar_days || 0) : 0;
|
let heartbeatBarDays = statusPage ? (statusPage.heartbeat_bar_days || 0) : 0;
|
||||||
|
|
||||||
// Get max beats parameter from query string (for client-side screen width constraints)
|
// Get max beats parameter from query string (for client-side screen width constraints)
|
||||||
const maxBeats = parseInt(request.query.maxBeats) || 100;
|
const maxBeats = Math.min(parseInt(request.query.maxBeats) || 100, 100);
|
||||||
|
|
||||||
// Process all monitors in parallel using Promise.all
|
// Process all monitors in parallel using Promise.all
|
||||||
const monitorPromises = monitorIDList.map(async (monitorID) => {
|
const monitorPromises = monitorIDList.map(async (monitorID) => {
|
||||||
|
|
Loading…
Add table
Reference in a new issue