From 2883f3a1c3479e1aca6b39ddab6d06c22fcf1079 Mon Sep 17 00:00:00 2001 From: Atiwit Pattanapukdee <65160394@go.buu.ac.th> Date: Tue, 18 Mar 2025 13:34:11 +0700 Subject: [PATCH] Project Round 3 --- controllers/tourController.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controllers/tourController.js b/controllers/tourController.js index 92c31d0..416c6b3 100644 --- a/controllers/tourController.js +++ b/controllers/tourController.js @@ -97,7 +97,7 @@ exports.createTour = async (req, res) => { } await pool.query( - 'INSERT INTO tours (name, location, price, description) VALUES (?, ?, ?, ?)', + 'INSERT INTO tours (name, description, price, duration) VALUES (?, ?, ?, ?)', [name, description, price, duration] ); res.redirect('/'); -- GitLab