From 1c4524752007e3da82b1e541415cf6d0855bf6a0 Mon Sep 17 00:00:00 2001 From: Atiwit Pattanapukdee <65160394@go.buu.ac.th> Date: Thu, 20 Mar 2025 21:55:58 +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 ada9213..02cd66c 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 -- GitLab