diff options
author | rohan09-raj <rajrohan1914@gmail.com> | 2022-08-20 21:52:57 +0530 |
---|---|---|
committer | rohan09-raj <rajrohan1914@gmail.com> | 2022-08-20 21:53:47 +0530 |
commit | 1926a54d1f7b8bc1ed690aaf8e3b679b41edce7b (patch) | |
tree | cc32e361c89929bd0bdff35c6a7ce063ca110c88 /server | |
parent | ecece125ca34002e2dcd1bf22ada5e62849156a9 (diff) |
enrollment improvements
Diffstat (limited to 'server')
-rw-r--r-- | server/controllers/users.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/controllers/users.js b/server/controllers/users.js index ea1a4e3..d986028 100644 --- a/server/controllers/users.js +++ b/server/controllers/users.js @@ -16,7 +16,7 @@ const createUser = async (req, res) => { } = req.body; try { - const existingUser = await UserDetails.findOne({name, mobile, email}); + const existingUser = await UserDetails.findOne({name, mobile, dob}); if (existingUser) { return res.status(400).json({message: 'User already exists.'}); } |