Skip to content

Commit

Permalink
Merge pull request #274 from capcodigital/feature/force-new-dates
Browse files Browse the repository at this point in the history
Stop sync now challenge has finished
  • Loading branch information
andrewkentish authored Jul 23, 2024
2 parents 56c6c0a + baee5a7 commit 64a74df
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions server/controllers/countries.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions server/controllers/fitbit.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down
4 changes: 2 additions & 2 deletions server/controllers/locations.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 2 additions & 2 deletions server/controllers/strava.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

Expand Down

0 comments on commit 64a74df

Please sign in to comment.