Skip to content

Commit

Permalink
Add direction_id to stops endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
consindo committed Mar 28, 2020
1 parent 8fa1a50 commit 77bcd8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/waka-worker/dataAccess/sql/stopsSqlRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,7 @@ export default class StopsSqlRepostory {
const escapedTripIds = `('${tripIds.join('\', \'')}')`
const data = await sqlRequest.query<{
trip_id: string
direction_id: number
route_id: string
route_long_name: string
route_short_name: string
Expand All @@ -186,13 +187,14 @@ export default class StopsSqlRepostory {
}>(`
SELECT
trips.trip_id,
trips.direction_id,
routes.route_id,
routes.agency_id,
routes.route_short_name,
routes.route_long_name,
routes.route_color,
routes.route_text_color,
stop_times.departure_time
stop_times.departure_time
FROM trips
INNER JOIN routes ON routes.route_id = trips.route_id
INNER JOIN stop_times ON stop_times.trip_id = trips.trip_id
Expand Down

0 comments on commit 77bcd8f

Please sign in to comment.