Skip to content

Commit

Permalink
Update carController.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Jan 22, 2025
1 parent 66b0eeb commit 7b4a812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/controllers/carController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -771,7 +771,7 @@ export const getFrontendCars = async (req: Request, res: Response) => {
$facet: {
resultData: [
{
$sort: { price: 1, _id: 1, comingSoon: -1, fullyBooked: -1 },
$sort: { price: 1, comingSoon: 1, fullyBooked: 1, _id: 1 },
},
{ $skip: (page - 1) * size },
{ $limit: size },
Expand Down

0 comments on commit 7b4a812

Please sign in to comment.