summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorrohan09-raj <rajrohan1914@gmail.com>2022-08-17 20:29:24 +0530
committerrohan09-raj <rajrohan1914@gmail.com>2022-08-17 20:29:24 +0530
commit12792757b925347e515ae0a967eeb88e000f5455 (patch)
tree3919b35a98284d763799bdeace40565bc8108866 /server
parentfba27fbc54a39820fdf3cded36dbf0e40e882a42 (diff)
address refactoring
Diffstat (limited to 'server')
-rw-r--r--server/models/users.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/users.js b/server/models/users.js
index ddc0681..53f4c8a 100644
--- a/server/models/users.js
+++ b/server/models/users.js
@@ -9,10 +9,10 @@ const userSchema = mongoose.Schema({
dob: {type: String, required: true},
mobile: {type: String, required: true},
email: {type: String, required: true},
- address: {type: String, required: true},
+ address: {type: Object, required: true},
photo: {type: String, required: true},
documents: {type: Object, required: true},
- biometrics: {type: Object, required: false},
+ biometrics: {type: Object, required: false}, // Need to be true
createdAt: {type: Date, default: new Date()},
verified: {type: Boolean, default: false},
});