From 5a7f4aec961e87dca5a8b2b7426fc2606193b2f6 Mon Sep 17 00:00:00 2001 From: morteza-mortezai Date: Sat, 25 Oct 2025 12:28:10 +0330 Subject: [PATCH] fix : user email default false --- src/modules/user/models/user.model.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/user/models/user.model.ts b/src/modules/user/models/user.model.ts index a4dbe1f..244019c 100644 --- a/src/modules/user/models/user.model.ts +++ b/src/modules/user/models/user.model.ts @@ -9,7 +9,7 @@ const userSchema = new Schema( dateOfBirth: { type: String, default: null }, address: { type: Schema.Types.ObjectId, ref: "Address", default: null }, nationalCode: { type: String, default: null }, - email: { type: String, unique: true, sparse: true, default: null }, + email: { type: String, unique: true, sparse: true }, homeNumber: { type: String, default: null }, }, {