Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/lib/gtfs/stop-times.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function getStoptimes<Fields extends keyof StopTime>(
throw new Error('`date` must be a number in yyyymmdd format');
}

const serviceIds = getServiceIdsByDate(query.date);
const serviceIds = getServiceIdsByDate(query.date, options);

const tripSubquery = `SELECT DISTINCT trip_id FROM trips WHERE service_id IN (${serviceIds.map((id) => sqlString.escape(id)).join(',')})`;

Expand Down
2 changes: 1 addition & 1 deletion src/lib/gtfs/trips.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function getTrips<Fields extends keyof Trip>(
throw new Error('`date` must be a number in yyyymmdd format');
}

const serviceIds = getServiceIdsByDate(query.date);
const serviceIds = getServiceIdsByDate(query.date, options);

whereClauses.push(
`service_id IN (${serviceIds.map((id) => sqlString.escape(id)).join(',')})`,
Expand Down