remove other scheduler to only schedule with cron

This commit is contained in:
Ryan Mwangi 2024-10-03 15:01:16 +03:00
parent 0e58a4e12c
commit 59456208a4
1 changed files with 0 additions and 6 deletions

View File

@ -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 * * * *', () => {