fixes lol

This commit is contained in:
ryzetech 2023-01-19 08:39:44 +01:00
parent 69c16dad46
commit bd163f0ccb

7
app.js
View file

@ -25,7 +25,7 @@ let schema = buildSchema(`
let root = { let root = {
isOpen({ id }) { isOpen({ id }) {
let open = cache.get(id); let open = cache.get(id);
return { open }; return open;
} }
}; };
@ -40,8 +40,9 @@ app.listen(4000);
// CHECK LOOP // CHECK LOOP
(async function () { (async function () {
for await (const time of setInterval(config.checkperiod * 10)) { await loop();
console.log("Checking for spaces..."); for await (const time of setInterval(config.checkperiod * 1000)) {
//console.log("Checking for spaces...");
await loop(); await loop();
} }
})(); })();