Merge branch 'bluewave-labs:master' into backend-completion

This commit is contained in:
Mohammad Khalilzadeh authored and GitHub committed 2024-07-06 08:50:43 +03:30
commit 9a9200c68e
9 files changed
+281 -87

No files matched your search

+2 -2
View File
@@ -68,8 +68,8 @@ const getUserByEmail = async (req, res) => {
try {
// Need the password to be able to compare, removed .select()
// We can strip the hash before returing the user
const user = await UserModel.findOne(
{ email: req.body.email }.select("-profileImage")
const user = await UserModel.findOne({ email: req.body.email }).select(
"-profileImage"
);
if (user) {
return user;