forked from ryanmwangi/CalMerger
remove other scheduler to only schedule with cron
This commit is contained in:
parent
0e58a4e12c
commit
59456208a4
|
@ -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 * * * *', () => {
|
||||
|
|
Loading…
Reference in New Issue