Skip to content

Commit

Permalink
Fix for frequencies
Browse files Browse the repository at this point in the history
  • Loading branch information
brendannee committed Oct 3, 2020
1 parent b4093b0 commit 28b52ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@ const getCalendarDatesServiceIds = async (startDate, endDate) => {
/*
* Get formatted frequencies for a specific trip.
*/
const getFrequenciesByTrip = async trip => {
const getFrequenciesByTrip = async (trip, config) => {
const frequencies = await gtfs.getFrequencies({
trip_id: trip.trip_id
});
return frequencies.map(frequency => formatters.formatFrequency(frequency));
return frequencies.map(frequency => formatters.formatFrequency(frequency, config));
};

/*
Expand Down

0 comments on commit 28b52ed

Please sign in to comment.