fix typo in userModule
This commit is contained in:
1 parent
bc8e509b17
commit
18081ceb77
1 file changed
+1
-1
@@ -68,7 +68,7 @@ const insertUser = async (userData, imageFile) => {
|
||||
const getUserByEmail = async (email) => {
|
||||
try {
|
||||
// Need the password to be able to compare, removed .select()
|
||||
// We can strip the hash before returing the user
|
||||
// We can strip the hash before returning the user
|
||||
const user = await UserModel.findOne({ email: email }).select("-profileImage");
|
||||
if (user) {
|
||||
return user;
|
||||
|
||||
Reference in new issue
Block a user