fix typo in userModule

This commit is contained in:
Alex Holliday committed 2024-10-24 11:01:17 +08:00
1 parent bc8e509b17
commit 18081ceb77
1 file changed
+1 -1
+1 -1
View File
@@ -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;