mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-08-07 14:41:09 +08:00
Update server/routers/api-router.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
@@ -316,7 +316,6 @@ router.get("/api/badge/:id/ping/:duration?", cache("5 minutes"), async (request,
|
||||
if (/^[0-9]+$/.test(requestedDuration)) {
|
||||
requestedDuration = `${requestedDuration}h`;
|
||||
}
|
||||
const duration = requestedDuration.slice(0, -1);
|
||||
|
||||
// Check if monitor is public
|
||||
|
||||
|
Reference in New Issue
Block a user