From 4b14cfedda67dd3abd31964f7ea2ea1fe83348a8 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 17 Oct 2024 17:22:40 +0530 Subject: [PATCH] feat: remove user code --- server/src/routes/auth.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index b818852f..35b3d160 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -301,12 +301,6 @@ router.post('/gsheets/data', requireSignIn, async (req, res) => { // Step 4: Get user's Google Sheets files (new route) router.get('/gsheets/files', requireSignIn, async (req, res) => { try { - // const user = await User.findByPk(req.user.id, { raw: true }); - - // if (!user) { - // return res.status(400).json({ message: 'User not found' }); - // } - const robotId = req.query.robotId; const robot = await Robot.findOne({ where: { 'recording_meta.id': robotId }, raw:true });