From 59456208a4b9bd9ea309a27b3ef86ca56bec74b2 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Thu, 3 Oct 2024 15:01:16 +0300 Subject: [PATCH] remove other scheduler to only schedule with cron --- server.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server.js b/server.js index 4fba8e0..083efa5 100644 --- a/server.js +++ b/server.js @@ -159,12 +159,6 @@ END:VEVENT } } -const refreshInterval = 60 * 60 * 1000; // 1 hour - -setInterval(() => { - // Fetch new calendar data and update the merged calendar - updateMergedCalendar(); -}, refreshInterval); // Schedule a cron job to update the merged calendar every hour cron.schedule('0 * * * *', () => {