mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-23 23:04:04 +00:00
Update server/routers/api-router.js
Co-authored-by: Frank Elsinga <frank@elsinga.de>
This commit is contained in:
parent
7270caccae
commit
f63d36478d
1 changed files with 0 additions and 1 deletions
|
@ -316,7 +316,6 @@ router.get("/api/badge/:id/ping/:duration?", cache("5 minutes"), async (request,
|
||||||
if (/^[0-9]+$/.test(requestedDuration)) {
|
if (/^[0-9]+$/.test(requestedDuration)) {
|
||||||
requestedDuration = `${requestedDuration}h`;
|
requestedDuration = `${requestedDuration}h`;
|
||||||
}
|
}
|
||||||
const duration = requestedDuration.slice(0, -1);
|
|
||||||
|
|
||||||
// Check if monitor is public
|
// Check if monitor is public
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue