Skip to content

Commit

Permalink
feat(get_passenger_reservations): add trip status
Browse files Browse the repository at this point in the history
  • Loading branch information
Franco Méndez committed Nov 6, 2019
1 parent c07f6ef commit 1109c57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion get_passenger_reservations.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ async function getTrip(tripId) {
trip_id: tripId
},
ProjectionExpression:
'driver_id, etd_info, route_points, vehicle_id'
'trip_status, driver_id, etd_info, route_points, vehicle_id'
};
const data = await dynamoDB.get(params).promise();
return data.Item;
Expand Down Expand Up @@ -159,6 +159,7 @@ async function formatResponse(reservation, trip) {
reservation_status: reservation.reservation_status,
trip_id: reservation.trip_id,
trip_role: 'passenger',
trip_status: trip.trip_status,
driver: await getDriverInformation(trip.driver_id),
vehicle: await getVehicleInformation(trip.vehicle_id),
etd_info: trip.etd_info,
Expand Down

0 comments on commit 1109c57

Please sign in to comment.