diff --git a/controllers/tourController.js b/controllers/tourController.js index ada92137e58974fe4f76bf109dcb3c2beade1b06..02cd66cf1a979d7fbf1c427a04e7629f04f88f62 100644 --- a/controllers/tourController.js +++ b/controllers/tourController.js @@ -293,7 +293,7 @@ exports.getUserBookings = async (req, res) => { try { const query = ` - SELECT b.id AS booking_id, t.name AS tour_name, b.status, u.name AS user_name + SELECT b.id AS booking_id, t.name AS tour_name, u.name AS user_name FROM bookings b JOIN tours t ON b.tour_id = t.id JOIN users u ON b.user_id = u.id