chore: lint

This commit is contained in:
karishmas6
2024-10-02 23:52:09 +05:30
parent 538bf59510
commit f0aad5685d

View File

@@ -17,7 +17,7 @@ router.post('/config', requireSignIn, async (req: AuthenticatedRequest, res: Res
if (!req.user) {
return res.status(401).json({ ok: false, error: 'Unauthorized' });
}
const user = await User.findByPk(req.user.id, {
attributes: { exclude: ['password'] },
});