🌴🚿 Checkpoint

./server.js:933874/13
This commit is contained in:
Glitch (hello-express) 2019-11-05 10:04:43 +00:00
parent cbfcea070d
commit f35b91eb2e
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ request.post(
const accessToken = JSON.parse(body)["access_token"];
const loop = () => {
console.log("loop", lastClosed);
if (lastSeen < new Date() - closingTimeout && lastClosed < lastSeen) {
if (fuzIsOpen && lastSeen < new Date() - closingTimeout && lastClosed < lastSeen) {
// the Fuz is newly closed, notify on matrix and write file to survive reboot
lastClosed = new Date();
//lastNofified = new Date();