From 18081ceb77cf0f3fcb5d0daad11d986524262111 Mon Sep 17 00:00:00 2001 From: Alex Holliday Date: Thu, 24 Oct 2024 11:01:17 +0800 Subject: [PATCH] fix typo in userModule --- Server/db/mongo/modules/userModule.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Server/db/mongo/modules/userModule.js b/Server/db/mongo/modules/userModule.js index 7afe04763..f90e2e354 100644 --- a/Server/db/mongo/modules/userModule.js +++ b/Server/db/mongo/modules/userModule.js @@ -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;