Removed password from returned user, updated readme
This commit is contained in:
1 parent
78abdd7f70
commit
7672cd5530
3 files changed
+63
-3
No files matched your search
@@ -73,7 +73,7 @@ const updateUser = async (req, res) => {
|
||||
candidateUserId,
|
||||
candidateUser,
|
||||
{ new: true } // Returns updated user instead of pre-update user
|
||||
);
|
||||
).select("-password");
|
||||
return updatedUser;
|
||||
} catch (error) {
|
||||
throw error;
|
||||
|
||||
Reference in new issue
Block a user