From ac2bd08ffdc3d93669be02d1da0fbfd45ff91020 Mon Sep 17 00:00:00 2001 From: Atiwit Pattanapukdee <65160394@go.buu.ac.th> Date: Wed, 26 Mar 2025 17:40:48 +0700 Subject: [PATCH] Project Round 11 --- models/tourModel.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/tourModel.js b/models/tourModel.js index bce5e6b..1774d05 100644 --- a/models/tourModel.js +++ b/models/tourModel.js @@ -81,7 +81,7 @@ class Tour { const query = ` 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 + JOIN company c ON t.companyid = c.id WHERE t.id = ?`; try { -- GitLab