Ali2206 commited on
Commit
044f9b1
·
verified ·
1 Parent(s): c864c0b

Update api/routes.py

Browse files
Files changed (1) hide show
  1. api/routes.py +1 -1
api/routes.py CHANGED
@@ -153,7 +153,7 @@ async def create_appointment(data: AppointmentCreate, current_user: dict = Depen
153
  appointment_doc = {
154
  "patient_id": patient_user["_id"],
155
  "doctor_id": ObjectId(data.doctor_id),
156
- "date": data.date,
157
  "time": data.time,
158
  "reason": data.reason,
159
  "created_by": current_user["email"],
 
153
  appointment_doc = {
154
  "patient_id": patient_user["_id"],
155
  "doctor_id": ObjectId(data.doctor_id),
156
+ "date": data.date,"date": datetime.combine(data.date, datetime.min.time()),
157
  "time": data.time,
158
  "reason": data.reason,
159
  "created_by": current_user["email"],