chore: lint

This commit is contained in:
karishmas6
2024-09-24 17:40:20 +05:30
parent d82171f7e3
commit f0e685f339

View File

@@ -73,8 +73,8 @@ router.get('/current-user', async (req: AuthenticatedRequest, res) => {
return res.status(401).send('Unauthorized');
}
const user = await User.findByPk(req.user.id, {
attributes: { exclude: ['password'] },
});
attributes: { exclude: ['password'] },
});
return res.status(200).json({ ok: true });
} catch (error) {
return res.status(500).send(`Could not fetch current user : ${error.message}.`);