1
0
Fork 0

move sheduled update from client side

This commit is contained in:
Ryan Mwangi 2024-10-02 14:20:21 +03:00
parent 094123b768
commit 294747e5a5
2 changed files with 2 additions and 7 deletions

View File

@ -41,9 +41,4 @@ const form = document.getElementById('merge-form');
});
});
//regular refresh
const refreshInterval = 60 * 60 * 1000; // 1 hour
setInterval(() => {
// Fetch new calendar data and update the merged calendar
updateMergedCalendar();
}, refreshInterval);

View File

@ -101,4 +101,4 @@ app.listen(port, () => {
cron.schedule('0 * * * *', () => {
console.log('Updating merged calendar...');
// TO DO: implement the logic to update the merged calendar
});
});