function formatSegmentEffort(effort, overrides) {
  // @todo Refactor vs LocationIngest.formatSegmentEffort
  const {
    id: _id,
    elapsed_time,
    moving_time,
    start_date_local,
    start_date,
  } = effort;

  return {
    _id,
    elapsed_time,
    moving_time,
    start_date_local,
    startDateUtc: new Date(start_date),
    ...overrides,
  };
}
/**
 * Convert raw Strava API data to base of SegmentEffort data model
 *
 * @param {Object} activity
 * @param {Object} overrides Optional. Properties to override output
 * @returns {Object}
 */
Convert raw Strava API data to base of SegmentEffort data model
@param {Object} activity
@param {Object} overrides Optional. Properties to override output
@returns {Object}
Convert raw Strava API data to base of SegmentEffort data model @param { Object } activity @param { Object } overrides Optional . Properties to override output @returns { Object }
function formatSegmentEffort(effort, overrides) {
  const {
    id: _id,
    elapsed_time,
    moving_time,
    start_date_local,
    start_date,
  } = effort;
  return {
    _id,
    elapsed_time,
    moving_time,
    start_date_local,
    startDateUtc: new Date(start_date),
    ...overrides,
  };
}
function formatSegmentEffort ( effort , overrides ) { const { id : _id , elapsed_time , moving_time , start_date_local , start_date , } = effort ; return { _id , elapsed_time , moving_time , start_date_local , startDateUtc : new Date ( start_date ) , ... overrides , } ; }
Convert raw Strava API data to base of SegmentEffort data model
 @param {Object} activity
 @param {Object} overrides Optional.
Convert raw Strava API data to base of SegmentEffort data model @param { Object } activity @param { Object } overrides Optional .
// @todo Refactor vs LocationIngest.formatSegmentEffort