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) => {
|
const getUserByEmail = async (email) => {
|
||||||
try {
|
try {
|
||||||
// Need the password to be able to compare, removed .select()
|
// 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");
|
const user = await UserModel.findOne({ email: email }).select("-profileImage");
|
||||||
if (user) {
|
if (user) {
|
||||||
return user;
|
return user;
|
||||||
|
|||||||
Reference in new issue
Block a user