Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 0552a71b authored by 65160394's avatar 65160394
Browse files

Project Round 9

parent 0fd8f55a
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,7 @@ exports.getUserBookings = async (req, res) => {
console.log("Fetching bookings for user:", userId);
try {
const query = `
SELECT t.name AS tour_name, 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment