From 6d17d60b72d5520f919d66da86a01496796b5d8f Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 19 Sep 2024 18:30:27 +0530 Subject: [PATCH] feat: remove fileName for integration json --- server/src/routes/integration.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/routes/integration.ts b/server/src/routes/integration.ts index 41ad4eda..16a5ae50 100644 --- a/server/src/routes/integration.ts +++ b/server/src/routes/integration.ts @@ -12,7 +12,7 @@ router.post('/upload-credentials', async (req, res) => { } // *** TEMPORARILY WE STORE CREDENTIALS HERE *** const integrations = loadIntegrations(); - integrations[fileName] = { fileName, spreadsheetId, range, credentials }; + integrations = { fileName, spreadsheetId, range, credentials }; saveIntegrations(integrations); logger.log('info', 'Service account credentials saved successfully.'); return res.send(true);