From e32d24d4d90b216ec88c53ef988ca146aa567544 Mon Sep 17 00:00:00 2001 From: "Glitch (hello-express)" Date: Sun, 3 Nov 2019 14:25:00 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=8F=AE=E2=9B=A9=20Checkpoint=20./server.j?= =?UTF-8?q?s:933874/197?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index d6b11c3..0e2f9e3 100644 --- a/server.js +++ b/server.js @@ -30,7 +30,8 @@ app.get("/img", (req, res) => { } }); app.get("/api", (req, res) => { - res.send(fuzIsOpen && new Date().getTime() - 5 * 1000 < lastSeen.getTime()) + console.log(fuzIsOpen, new Date() - 5 * 1000 < lastSeen) + res.send(fuzIsOpen && new Date() - 5 * 1000 < lastSeen) }); // http://expressjs.com/en/starter/basic-routing.html