fixes lol

This commit is contained in:
ryzetech 2023-01-19 08:39:44 +01:00
parent 69c16dad46
commit bd163f0ccb
1 changed files with 4 additions and 3 deletions

7
app.js
View File

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