mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-10-01 01:25:45 -04:00
fix: remove check that method is correct
This commit is contained in:
parent
823aeda9fe
commit
9c7aa13190
@ -60,10 +60,6 @@ router.all("/api/push/:pushToken", async (request, response) => {
|
|||||||
throw new Error("Monitor not found or not active.");
|
throw new Error("Monitor not found or not active.");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (monitor.method !== request.method) {
|
|
||||||
throw new Error("Monitor HTTP method (" + monitor.method + ") does not match request (" + request.method + ").");
|
|
||||||
}
|
|
||||||
|
|
||||||
const previousHeartbeat = await Monitor.getPreviousHeartbeat(monitor.id);
|
const previousHeartbeat = await Monitor.getPreviousHeartbeat(monitor.id);
|
||||||
|
|
||||||
let isFirstBeat = true;
|
let isFirstBeat = true;
|
||||||
|
Loading…
Reference in New Issue
Block a user