Skip to content

Commit

Permalink
Update user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
BarhateManthan authored Feb 18, 2024
1 parent 263cc73 commit 1ec3471
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/routes/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ router.get("/me", authenticateJwt, async (req, res) => {
return res.status(403).json({ msg: "User not found" });
}
res.json({
username: user.username
username: user.username,
id: user._id
});
} catch (error) {
console.error(error);
Expand Down

0 comments on commit 1ec3471

Please sign in to comment.