From 2f081fb6ae43728fe70ff656c4df275bb844a558 Mon Sep 17 00:00:00 2001
From: Atiwit Pattanapukdee <65160394@go.buu.ac.th>
Date: Thu, 20 Mar 2025 19:18:46 +0700
Subject: [PATCH] Project Round 8

---
 controllers/tourController.js | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/controllers/tourController.js b/controllers/tourController.js
index becdf95..a0b4d09 100644
--- a/controllers/tourController.js
+++ b/controllers/tourController.js
@@ -212,6 +212,9 @@ exports.postEditTour = async (req, res) => {
 
   const tourData = { name, description, price, duration };
   const tourId = req.params.userId;  
+
+  console.log('Tour ID from URL:', tourId);
+  
   if (!tourId) {
     return res.status(400).send('ไม่พบข้อมูลทัวร์');
   }
-- 
GitLab