fixes lol
This commit is contained in:
parent
69c16dad46
commit
bd163f0ccb
1 changed files with 4 additions and 3 deletions
7
app.js
7
app.js
|
@ -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();
|
||||||
}
|
}
|
||||||
})();
|
})();
|
||||||
|
|
Loading…
Reference in a new issue