diff --git a/server/routers/api-router.js b/server/routers/api-router.js index 6c87fb179..e29c6bebc 100644 --- a/server/routers/api-router.js +++ b/server/routers/api-router.js @@ -35,6 +35,9 @@ router.get("/api/push/:pushToken", async (request, response) => { bean.status = UP; bean.msg = msg; + // TODO: HOW TO? + //bean.ping + await R.store(bean); io.to(monitor.user_id).emit("heartbeat", bean.toJSON());