diff --git a/server/src/routes/integration.ts b/server/src/routes/integration.ts index cc2c39df..3c9f8519 100644 --- a/server/src/routes/integration.ts +++ b/server/src/routes/integration.ts @@ -11,9 +11,9 @@ router.post('/upload-credentials', async (req, res) => { return res.status(400).json({ message: 'Credentials, Spreadsheet ID, and Range are required.' }); } // *** TEMPORARILY WE STORE CREDENTIALS HERE *** - let integrations = loadIntegrations(); + let integrations = loadIntegrations(fileName); integrations = { fileName, spreadsheetId, range, credentials }; - saveIntegrations(integrations); + saveIntegrations(fileName, integrations); logger.log('info', 'Service account credentials saved successfully.'); return res.send(true); } catch (error: any) {