From ba95f2bd1dae5d34aa23e99473b47e5abe4af996 Mon Sep 17 00:00:00 2001 From: Sophia Atkinson Date: Tue, 29 Apr 2025 16:02:09 -0700 Subject: [PATCH] the fix broke it, im a great dev :3 --- index.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/index.js b/index.js index 5ed43f7..755ece4 100644 --- a/index.js +++ b/index.js @@ -132,15 +132,14 @@ async function checkForUpdates(config) { } // Main loop -async function poll() { +(async () => { + console.log('🚀 Starting poller...'); for (const config of configs) { await checkForUpdates(config); } - setTimeout(poll, pollIntervalMs); -} - - -(async () => { - console.log('🚀 Starting poller...'); - await poll(); + setInterval(async () => { + for (const config of configs) { + await checkForUpdates(config); + } + }, pollIntervalMs); })();