From 31246b088df39db7ab01df8a75ca8f478b56f18a Mon Sep 17 00:00:00 2001 From: BryanField15 <4bryanfield@gmail.com> Date: Thu, 2 Nov 2023 12:24:12 +1100 Subject: [PATCH] updated res data to be full user info --- controllers/userController.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/controllers/userController.js b/controllers/userController.js index 8eb83f5..e00d02c 100644 --- a/controllers/userController.js +++ b/controllers/userController.js @@ -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) {