updated log
This commit is contained in:
@@ -216,7 +216,6 @@ router.put(
|
|||||||
|
|
||||||
// Validate request body
|
// Validate request body
|
||||||
const appointmentData = updateAppointmentSchema.parse(req.body);
|
const appointmentData = updateAppointmentSchema.parse(req.body);
|
||||||
console.log("Validated appointment update data:", appointmentData);
|
|
||||||
|
|
||||||
// If patient ID is being updated, verify the new patient belongs to user
|
// If patient ID is being updated, verify the new patient belongs to user
|
||||||
if (
|
if (
|
||||||
@@ -282,7 +281,6 @@ router.put(
|
|||||||
appointmentId,
|
appointmentId,
|
||||||
appointmentData
|
appointmentData
|
||||||
);
|
);
|
||||||
console.log("Appointment updated successfully:", updatedAppointment);
|
|
||||||
res.json(updatedAppointment);
|
res.json(updatedAppointment);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Error updating appointment:", error);
|
console.error("Error updating appointment:", error);
|
||||||
|
|||||||
Reference in New Issue
Block a user