fix: remove check that method is correct

pull/1991/head
Stefan Ottosson 6 months ago
parent 823aeda9fe
commit 9c7aa13190
No known key found for this signature in database
GPG Key ID: 254BFA8856A90692

@ -60,10 +60,6 @@ router.all("/api/push/:pushToken", async (request, response) => {
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);
let isFirstBeat = true;

Loading…
Cancel
Save