Skip to content

Commit

Permalink
added rideBooked: false to search all trips
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanField15 committed Nov 2, 2023
1 parent 31246b0 commit ba83278
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/tripController.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ exports.searchAllTrips = async (req, res) => {
origin,
destination,
deptDate: deptDateObject,
rideBooked: false,
})
.sort({ deptTime: 1 })
.limit(5);
Expand Down

0 comments on commit ba83278

Please sign in to comment.