Gitlab@Informatics

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

Project Round 9

parent e7c8f7f1
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ class Tour {
// ดึงทัวร์ตาม ID
static async getTourById(tourId) {
const query = 'SELECT id, name, description, price, userId FROM tours WHERE id = ?';
const query = 'SELECT id, name, description, price, duration, userId FROM tours WHERE id = ?';
try {
const [results] = await pool.execute(query, [tourId]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment