mirror of
https://github.com/usatiuk/ustk-todolist.git
synced 2025-10-29 08:07:48 +01:00
respond with user.toAuthJson for user
This commit is contained in:
@@ -17,7 +17,7 @@ router.get(
|
||||
asyncHelper(async (req, res) => {
|
||||
const { id } = req.user;
|
||||
const user = await User.findById(id).exec();
|
||||
res.json({ success: true, data: user.toJson() });
|
||||
res.json({ success: true, data: user.toAuthJson() });
|
||||
}),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user