From 4d684780113602b9ba81332ab8c11827cbf2e000 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 17 Oct 2024 18:38:43 +0530 Subject: [PATCH] fix: set error type --- server/src/routes/auth.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/auth.ts b/server/src/routes/auth.ts index 910c7531..6ca305bb 100644 --- a/server/src/routes/auth.ts +++ b/server/src/routes/auth.ts @@ -350,7 +350,7 @@ router.post('/gsheets/update', requireSignIn, async (req, res) => { await robot.update({ google_sheet_id: spreadsheetId }); res.json({ message: 'Robot updated with selected Google Sheet ID' }); - } catch (error) { + } catch (error: any) { res.status(500).json({ message: `Error updating robot: ${error.message}` }); } });