diff --git a/server.js b/server.js index 86bd5c9..e1b9dd0 100644 --- a/server.js +++ b/server.js @@ -306,14 +306,6 @@ app.post('/refresh/:id', async (req, res) => { } }); -// Schedule a cron job to update the merged calendar every hour -cron.schedule('1 * * * *', () => { - console.log('Updating merged calendar...'); - const calendarsData = JSON.parse(fs.readFileSync(CALENDARS_FILE, 'utf8')); - calendarsData.mergedCalendars.forEach((mergedCalendar) => { - updateMergedCalendars(mergedCalendar.id); - }); -}); // Start the server const port = 3000;