Gitlab@Informatics

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

Project Round 8

parent c564a9db
No related branches found
No related tags found
No related merge requests found
......@@ -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('ไม่พบข้อมูลทัวร์');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment