From 71b6d047d152eea1bd57b1efbb6b3aa6a8bef129 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 21 Oct 2024 02:34:00 +0530 Subject: [PATCH] chore: lint --- server/src/routes/auth.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 22540456..16304d09 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -302,7 +302,7 @@ router.post('/gsheets/data', requireSignIn, async (req, res) => { router.get('/gsheets/files', requireSignIn, async (req, res) => { try { const robotId = req.query.robotId; - const robot = await Robot.findOne({ where: { 'recording_meta.id': robotId }, raw:true }); + const robot = await Robot.findOne({ where: { 'recording_meta.id': robotId }, raw: true }); if (!robot) { return res.status(400).json({ message: 'Robot not found' }); @@ -357,7 +357,6 @@ router.post('/gsheets/update', requireSignIn, async (req, res) => { router.post('/gsheets/remove', requireSignIn, async (req, res) => { const { robotId } = req.body; - if (!robotId) { return res.status(400).json({ message: 'Robot ID is required' }); } @@ -369,8 +368,8 @@ router.post('/gsheets/remove', requireSignIn, async (req, res) => { return res.status(404).json({ message: 'Robot not found' }); } - await robot.update({ - google_sheet_id: null, + await robot.update({ + google_sheet_id: null, google_sheet_name: null, google_sheet_email: null, google_access_token: null,