Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 0c9c299f authored by 65160394's avatar 65160394
Browse files

Project Round 9

parent 8c875865
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment