|
|
@ -63,9 +63,9 @@ router.get("/api/push/:pushToken", async (request, response) => {
|
|
|
|
duration = dayjs(bean.time).diff(dayjs(previousHeartbeat.time), "second");
|
|
|
|
duration = dayjs(bean.time).diff(dayjs(previousHeartbeat.time), "second");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
log.debug(`/api/push/ called at ${dayjs().format("YYYY-MM-DD HH:mm:ss.SSS")}`);
|
|
|
|
log.debug("router", `/api/push/ called at ${dayjs().format("YYYY-MM-DD HH:mm:ss.SSS")}`);
|
|
|
|
log.debug("PreviousStatus: " + previousStatus);
|
|
|
|
log.debug("router", "PreviousStatus: " + previousStatus);
|
|
|
|
log.debug("Current Status: " + status);
|
|
|
|
log.debug("router", "Current Status: " + status);
|
|
|
|
|
|
|
|
|
|
|
|
bean.important = Monitor.isImportantBeat(isFirstBeat, previousStatus, status);
|
|
|
|
bean.important = Monitor.isImportantBeat(isFirstBeat, previousStatus, status);
|
|
|
|
bean.monitor_id = monitor.id;
|
|
|
|
bean.monitor_id = monitor.id;
|
|
|
|