From 94bc21fba285b69914946e6dba76351de5392ac6 Mon Sep 17 00:00:00 2001 From: Atiwit Pattanapukdee <65160394@go.buu.ac.th> Date: Thu, 20 Mar 2025 21:38:59 +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 35f8d9d..05e4fc6 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]); // ส่งข้อมูลการจองกลับไปยังผู้ใช้ - res.render('myBookings', { bookings }); + res.render('my-bookings', { bookings }); } catch (error) { console.error('Error fetching user bookings:', error.message); res.status(500).send('เกิดข้อผิดพลาดในการดึงข้อมูลการจอง'); -- GitLab