Gitlab@Informatics

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

Project Round 11

parent 58191c45
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 cname
SELECT t.id, t.name, t.description, t.price, t.duration, t.userId, c.cname AS cname
FROM tours t
JOIN company c ON t.companyid = 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