From 294747e5a5e3f0c49540c1581d0abefe048721b3 Mon Sep 17 00:00:00 2001 From: Ryan Mwangi Date: Wed, 2 Oct 2024 14:20:21 +0300 Subject: [PATCH] move sheduled update from client side --- script.js | 7 +------ server.js | 2 +- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/script.js b/script.js index 78d22e3..c7f8862 100644 --- a/script.js +++ b/script.js @@ -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); \ No newline at end of file + \ No newline at end of file diff --git a/server.js b/server.js index 3c00c71..cf81b3b 100644 --- a/server.js +++ b/server.js @@ -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 -}); \ No newline at end of file +});