Skip to content

Commit

Permalink
updated res data to be full user info
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanField15 committed Nov 2, 2023
1 parent d5de46f commit 31246b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ exports.getUserByEmail = async (req, res) => {
res.status(200).json({
status: 'success',
data: {
userId: user._id,
user,
// userId: user._id,
},
});
} catch (err) {
Expand Down

0 comments on commit 31246b0

Please sign in to comment.