Configurable interval

This commit is contained in:
Christopher Cookman 2025-10-25 10:32:59 -06:00
parent 077a8c4c59
commit d292916850

View file

@ -54,7 +54,7 @@ const main = async () => {
} catch (err) { } catch (err) {
console.error(`Unexpected error: ${err}`); console.error(`Unexpected error: ${err}`);
} }
setTimeout(main, 3000); // Run every 60 seconds setTimeout(main, process.env.CHECK_INTERVAL * 1000); // Run every CHECK_INTERVAL seconds
}; };
const startup = async () => { const startup = async () => {