From 0c9c299f03eafbc8ac36bffc2ddcc578b774e362 Mon Sep 17 00:00:00 2001
From: Atiwit Pattanapukdee <65160394@go.buu.ac.th>
Date: Thu, 20 Mar 2025 22:06:41 +0700
Subject: [PATCH] Project Round 9

---
 controllers/tourController.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/controllers/tourController.js b/controllers/tourController.js
index 3eeb88a..9f7f525 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);
-- 
GitLab