From c3a58b9394f0ecb76c2b2ff1e1adbb9597de731e Mon Sep 17 00:00:00 2001 From: Gaurika Mahajan Date: Sun, 28 Jul 2024 23:07:15 -0400 Subject: [PATCH] backend test fixes --- server/src/models/UserModel.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/src/models/UserModel.js b/server/src/models/UserModel.js index e66773eb..e29e30d8 100644 --- a/server/src/models/UserModel.js +++ b/server/src/models/UserModel.js @@ -110,15 +110,15 @@ const UserSchema = new mongoose.Schema( }, phoneNumber: { type: String, - required: true, + required: false, }, emergencyContactName: { type: String, - required: true, + required: false, }, emergencyContactRelationship: { type: String, - required: true, + required: false, }, emergencyContactCountryCode: { type: String, @@ -126,7 +126,7 @@ const UserSchema = new mongoose.Schema( }, emergencyContactNumber: { type: String, - required: true, + required: false, }, medicalInfo: { type: String,