From 9843c07db9292de6415bfc958e6afc599b7d5e7a Mon Sep 17 00:00:00 2001 From: Atiwit Pattanapukdee <65160394@go.buu.ac.th> Date: Thu, 20 Mar 2025 21:57:34 +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 02cd66c..6ae2bf8 100644 --- a/controllers/tourController.js +++ b/controllers/tourController.js @@ -303,7 +303,7 @@ exports.getUserBookings = async (req, res) => { const [bookings] = await pool.query(query, [userId]); // ส่งข้อมูลการจองไปยังหน้า EJS - res.render('myBookings', { bookings: bookings }); + res.render('bookinglist', { bookings: bookings }); } catch (error) { console.error('Error fetching bookings:', error.message); res.status(500).send('เกิดข้อผิดพลาดในการดึงข้อมูลการจอง'); -- GitLab