feat: set raw true

This commit is contained in:
karishmas6
2024-10-03 04:04:03 +05:30
parent af1a07bf14
commit 9a6da85e73

View File

@@ -97,6 +97,7 @@ router.post('/generate-api-key', requireSignIn, async (req: AuthenticatedRequest
return res.status(401).json({ ok: false, error: 'Unauthorized' });
}
const user = await User.findByPk(req.user.id, {
raw: true,
attributes: { exclude: ['password'] },
});