From ec651e92937c248dc1752e7a57278b6858be3c8e Mon Sep 17 00:00:00 2001
From: Panyaphorn Promchat <65160014@go.buu.ac.th>
Date: Sat, 29 Mar 2025 09:44:31 +0700
Subject: [PATCH] Initial commit

---
 controllers/bookingController.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/controllers/bookingController.js b/controllers/bookingController.js
index bdc1cae..2b2c82a 100644
--- a/controllers/bookingController.js
+++ b/controllers/bookingController.js
@@ -211,7 +211,8 @@ exports.updateNote = async (req, res) => {
       return res.status(400).send("ไม่พบรหัสการจอง");
     }
     await bookingModel.updateAppointmentNote(appointmentId, note);
-    res.redirect('/customer/bookingSummary?id=' + appointmentId);
+    res.redirect('/customer/allAppointments');
+//    res.redirect('/customer/bookingSummary?id=' + appointmentId);
   } catch (error) {
     console.error(error);
     res.status(500).send('เกิดข้อผิดพลาดในการอัพเดทหมายเหตุ');
-- 
GitLab