mirror of
https://github.com/Lomanic/presence-button-web
synced 2024-11-26 07:27:30 +00:00
🌴🚿 Checkpoint
./server.js:933874/13
This commit is contained in:
parent
cbfcea070d
commit
f35b91eb2e
@ -108,7 +108,7 @@ request.post(
|
|||||||
const accessToken = JSON.parse(body)["access_token"];
|
const accessToken = JSON.parse(body)["access_token"];
|
||||||
const loop = () => {
|
const loop = () => {
|
||||||
console.log("loop", lastClosed);
|
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
|
// the Fuz is newly closed, notify on matrix and write file to survive reboot
|
||||||
lastClosed = new Date();
|
lastClosed = new Date();
|
||||||
//lastNofified = new Date();
|
//lastNofified = new Date();
|
||||||
|
Loading…
Reference in New Issue
Block a user