From 8d5eaaf8a7ab6ba1658c24252ad377d60b20542d Mon Sep 17 00:00:00 2001 From: LouisLam Date: Fri, 1 Oct 2021 00:26:27 +0800 Subject: [PATCH] minor --- server/routers/api-router.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/routers/api-router.js b/server/routers/api-router.js index 6c87fb17..e29c6beb 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());