From 8bf86af7de210ff171258e3b3a570c693de757dd Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 28 Oct 2024 03:05:45 +0530 Subject: [PATCH] chore: lint --- server/src/routes/auth.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 8139bc77..8035e3c4 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -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) {