chore: lint

This commit is contained in:
karishmas6
2024-10-28 03:05:45 +05:30
parent f06254c688
commit 8bf86af7de

View File

@@ -234,7 +234,7 @@ router.get('/google/callback', requireSignIn, async (req: AuthenticatedRequest,
if (!req.user) {
return res.status(401).send({ error: 'Unauthorized' });
}
}
// Get the currently authenticated user (from `requireSignIn`)
let user = await User.findOne({ where: { id: req.user.id } });
@@ -287,7 +287,7 @@ router.post('/gsheets/data', requireSignIn, async (req: AuthenticatedRequest, re
const { spreadsheetId, robotId } = req.body;
if (!req.user) {
return res.status(401).send({ error: 'Unauthorized' });
}
}
const user = await User.findByPk(req.user.id, { raw: true });
if (!user) {