Gitlab@Informatics

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

Project Round 3

parent 2883f3a1
Branches
No related tags found
No related merge requests found
......@@ -115,7 +115,7 @@ exports.postCreateTour = async (req, res) => {
}
try {
await Tour.create(name, description, price, duration); // สร้างทัวร์
await Tour.createTour(name, description, price, duration); // สร้างทัวร์
res.redirect('/'); // กลับไปหน้าแรกหลังจากสร้างเสร็จ
} catch (error) {
console.error(error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment