Gitlab@Informatics

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

Project Round 11

parent 4fecce6f
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ class Tour {
// ดึงทัวร์ตาม ID
static async getTourById(tourId) {
const query = `
SELECT t.id, t.name, t.description, t.price, t.duration, t.userId, c.name AS company_name
SELECT t.id, t.name, t.description, t.price, t.duration, t.userId, c.name AS cname
FROM tours t
JOIN company c ON t.company_id = c.id
WHERE t.id = ?`;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment