async function updateAthleteLastRefreshed(athleteDoc, startDateString) {
  try {
    const startDate = new Date(startDateString); // UTC
    athleteDoc.set('last_refreshed', getEpochSecondsFromDateObj(startDate));
    const updatedDoc = await athleteDoc.save();
    console.log(`Updated last_refreshed to ${startDateString}`);
    return updatedDoc;
  } catch (err) {
    captureSentry(
      err,
      'refreshAthleteFromActivity',
      { extra: { startDateString } },
    );
  }
  return athleteDoc;
}
/**
 * Update athlete's last refreshed to start time of this activity
 *
 * @param {Document} athleteDoc
 * @param {String} startDateString ISO-8601 string, presumably UTC
 * @return {Document} Updated document
 */
Update athlete's last refreshed to start time of this activity
@param {Document} athleteDoc
@param {String} startDateString ISO-8601 string, presumably UTC
@return {Document} Updated document
Update athlete ' s last refreshed to start time of this activity @param { Document } athleteDoc @param { String } startDateString ISO - 8601 string presumably UTC @return { Document } Updated document
async function updateAthleteLastRefreshed(athleteDoc, startDateString) {
  try {
    const startDate = new Date(startDateString); 
    athleteDoc.set('last_refreshed', getEpochSecondsFromDateObj(startDate));
    const updatedDoc = await athleteDoc.save();
    console.log(`Updated last_refreshed to ${startDateString}`);
    return updatedDoc;
  } catch (err) {
    captureSentry(
      err,
      'refreshAthleteFromActivity',
      { extra: { startDateString } },
    );
  }
  return athleteDoc;
}
async function updateAthleteLastRefreshed ( athleteDoc , startDateString ) { try { const startDate = new Date ( startDateString ) ; athleteDoc . set ( 'last_refreshed' , getEpochSecondsFromDateObj ( startDate ) ) ; const updatedDoc = await athleteDoc . save ( ) ; console . log ( ` ${ startDateString } ` ) ; return updatedDoc ; } catch ( err ) { captureSentry ( err , 'refreshAthleteFromActivity' , { extra : { startDateString } } , ) ; } return athleteDoc ; }
Update athlete's last refreshed to start time of this activity
 @param {Document} athleteDoc
 @param {String} startDateString ISO-8601 string, presumably UTC
 @return {Document} Updated document
Update athlete ' s last refreshed to start time of this activity @param { Document } athleteDoc @param { String } startDateString ISO - 8601 string presumably UTC @return { Document } Updated document
// UTC