From a1d672847f5158018e6f56b0d431f2305d9bfd93 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 18 Sep 2024 20:01:45 +0530 Subject: [PATCH] feat: pass fileName --- src/api/interpretation.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/interpretation.ts b/src/api/interpretation.ts index 9fbfb2f6..7cfd2561 100644 --- a/src/api/interpretation.ts +++ b/src/api/interpretation.ts @@ -1,9 +1,9 @@ import { default as axios } from "axios"; // todo: proper typescript types for params -export const handleUploadCredentials = async (credentials: any, spreadsheetId: any, range: any) => { +export const handleUploadCredentials = async (fileName: any, credentials: any, spreadsheetId: any, range: any) => { try { - await axios.post('http://localhost:8080/integration/upload-credentials', { credentials: JSON.parse(credentials), spreadsheetId, range }); + await axios.post('http://localhost:8080/integration/upload-credentials', { fileName, credentials: JSON.parse(credentials), spreadsheetId, range }); alert('Service Account credentials saved successfully.'); } catch (error) { console.error('Error uploading credentials:', error);