diff --git a/controllers/tourController.js b/controllers/tourController.js index 35f8d9df55e7c26186c434e822700fe056b4ee81..05e4fc6a83998183cd816ae6274166ec102e2d23 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('เกิดข้อผิดพลาดในการดึงข้อมูลการจอง');