async function scheduleNightlyRefresh() {
  console.log(`Scheduling refresh for ${timePartString(refreshSchedule.hour)}h${timePartString(refreshSchedule.minute)} GMT`);
  scheduleJob(refreshSchedule, async () => {
    console.log('Refreshing athletes and stats');
    await refreshAthletes();
  });
}
/**
 * Nightly refresh of activities and stats
 */
Nightly refresh of activities and stats
Nightly refresh of activities and stats
async function scheduleNightlyRefresh() {
  console.log(`Scheduling refresh for ${timePartString(refreshSchedule.hour)}h${timePartString(refreshSchedule.minute)} GMT`);
  scheduleJob(refreshSchedule, async () => {
    console.log('Refreshing athletes and stats');
    await refreshAthletes();
  });
}
async function scheduleNightlyRefresh ( ) { console . log ( ` ${ timePartString ( refreshSchedule . hour ) } ${ timePartString ( refreshSchedule . minute ) } ` ) ; scheduleJob ( refreshSchedule , async ( ) => { console . log ( 'Refreshing athletes and stats' ) ; await refreshAthletes ( ) ; } ) ; }
Nightly refresh of activities and stats
Nightly refresh of activities and stats