From 2936a960cf7c0b8500c84f8cb5922a9a58dc76b8 Mon Sep 17 00:00:00 2001 From: Anand Suthar Date: Wed, 3 Jul 2024 19:03:48 +0530 Subject: [PATCH] refactor : using String as type for DOB --- app/models/patient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/patient.ts b/app/models/patient.ts index c72dbd3c..9e4a8031 100644 --- a/app/models/patient.ts +++ b/app/models/patient.ts @@ -67,7 +67,7 @@ const patientSchema = new mongoose.Schema( password: { type: String, required: true }, role: { type: String, required: true, default: "patient" }, otp: String, - dob: { type: Date, required: false }, + dob: { type: String, required: false }, gender: { type: String, required: false,