From baee5a786cc7a67ef63571d6affa071c7da779cc Mon Sep 17 00:00:00 2001 From: Andrew Kentish Date: Tue, 23 Jul 2024 07:15:10 +0100 Subject: [PATCH] Stop sync now challenge has finished --- server/controllers/countries.controller.js | 4 ++-- server/controllers/fitbit.controller.js | 4 ++-- server/controllers/locations.controller.js | 4 ++-- server/controllers/strava.controller.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/server/controllers/countries.controller.js b/server/controllers/countries.controller.js index 0b3d39d..5fc0ce1 100644 --- a/server/controllers/countries.controller.js +++ b/server/controllers/countries.controller.js @@ -16,10 +16,10 @@ const callbackUrl = process.env.SERVER_URL ? `https://${process.env.SERVER_URL}/ if (cluster.isMaster) { setTimeout(function(){ if (process.env.UPDATE_INTERVAL) { - updateEveryInterval(process.env.UPDATE_INTERVAL); + // updateEveryInterval(process.env.UPDATE_INTERVAL); } else { - updateEveryInterval(60); + // updateEveryInterval(60); } }, countryStatsDelay); } diff --git a/server/controllers/fitbit.controller.js b/server/controllers/fitbit.controller.js index 9ac9fb5..6d9f46b 100644 --- a/server/controllers/fitbit.controller.js +++ b/server/controllers/fitbit.controller.js @@ -61,10 +61,10 @@ var getOptions = { // the child nodes will automatically pick up the changes if (cluster.isMaster) { if (process.env.UPDATE_INTERVAL) { - updateEveryInterval(process.env.UPDATE_INTERVAL); + // updateEveryInterval(process.env.UPDATE_INTERVAL); } else { - updateEveryInterval(60); + // updateEveryInterval(60); } } diff --git a/server/controllers/locations.controller.js b/server/controllers/locations.controller.js index 39f3045..23b2d26 100644 --- a/server/controllers/locations.controller.js +++ b/server/controllers/locations.controller.js @@ -16,10 +16,10 @@ const callbackUrl = process.env.SERVER_URL ? `https://${process.env.SERVER_URL}/ if (cluster.isMaster) { setTimeout(function(){ if (process.env.UPDATE_INTERVAL) { - updateEveryInterval(process.env.UPDATE_INTERVAL); + // updateEveryInterval(process.env.UPDATE_INTERVAL); } else { - updateEveryInterval(60); + // updateEveryInterval(60); } }, locationStatsDelay); } diff --git a/server/controllers/strava.controller.js b/server/controllers/strava.controller.js index 2616331..846a41b 100644 --- a/server/controllers/strava.controller.js +++ b/server/controllers/strava.controller.js @@ -51,10 +51,10 @@ const CYCLING_CONVERSION = config.cyclingConversion || 3; // the child nodes will automatically pick up the changes if (cluster.isMaster) { if (process.env.UPDATE_INTERVAL) { - updateEveryInterval(process.env.UPDATE_INTERVAL); + // updateEveryInterval(process.env.UPDATE_INTERVAL); } else { - updateEveryInterval(120); + // updateEveryInterval(120); } }