diff --git a/controllers/tourController.js b/controllers/tourController.js index 3eeb88af3d54b424b039f2f81471d9b7b22a3225..9f7f5257435f4e1a75782a93d8bbe7bb21de3f42 100644 --- a/controllers/tourController.js +++ b/controllers/tourController.js @@ -298,7 +298,7 @@ exports.getUserBookings = async (req, res) => { JOIN tours t ON b.tour_id = t.id JOIN users u ON b.user_id = u.id WHERE b.user_id = ? - ORDER BY b.booking_date DESC + ORDER BY b.id ASC `; const [bookings] = await pool.query(query, [userId]); console.log("Bookings Data:", bookings);