function formatSegmentEffort({
  id,
  elapsed_time,
  moving_time,
  start_date_local,
}) {
  return {
    _id: id,
    elapsed_time,
    moving_time,
    start_date_local,
  };
}
/**
 * Format segment effort into our database model shape
 *
 * @param {Object} effort Segment effort from Strava API
 * @return {Object}
 */
Format segment effort into our database model shape
@param {Object} effort Segment effort from Strava API
@return {Object}
Format segment effort into our database model shape @param { Object } effort Segment effort from Strava API @return { Object }
function formatSegmentEffort({
  id,
  elapsed_time,
  moving_time,
  start_date_local,
}) {
  return {
    _id: id,
    elapsed_time,
    moving_time,
    start_date_local,
  };
}
function formatSegmentEffort ( { id , elapsed_time , moving_time , start_date_local , } ) { return { _id : id , elapsed_time , moving_time , start_date_local , } ; }
Format segment effort into our database model shape
 @param {Object} effort Segment effort from Strava API
 @return {Object}
Format segment effort into our database model shape @param { Object } effort Segment effort from Strava API @return { Object }