mirror of
https://api.glitch.com/git/presence-button
synced 2024-11-05 09:17:30 +00:00
📍🏜 Checkpoint
./server.js:933874/1
This commit is contained in:
parent
13859b2965
commit
30cf83b999
@ -56,7 +56,7 @@ app.get("/status", (req, res) => {
|
|||||||
res.set("WWW-Authenticate", 'Basic realm="Authentication required"');
|
res.set("WWW-Authenticate", 'Basic realm="Authentication required"');
|
||||||
return res.status(401).send("Authentication required.");
|
return res.status(401).send("Authentication required.");
|
||||||
}
|
}
|
||||||
fuzIsOpen = req.query.fuzisopen == "1";
|
fuzIsOpen = req.query.fuzisopen === "1";
|
||||||
lastSeen = new Date();
|
lastSeen = new Date();
|
||||||
try {
|
try {
|
||||||
fs.writeFileSync(db, JSON.stringify({ fuzIsOpen, lastSeen }));
|
fs.writeFileSync(db, JSON.stringify({ fuzIsOpen, lastSeen }));
|
||||||
|
Loading…
Reference in New Issue
Block a user