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