From a32a5620456fdeee0b97eeb39ad6e4487253d347 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Wed, 18 Sep 2024 18:32:46 +0530 Subject: [PATCH] feat: accept spreadsheetId and range --- 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 e2a4dea6..9fbfb2f6 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) => { +export const handleUploadCredentials = async (credentials: any, spreadsheetId: any, range: any) => { try { - await axios.post('http://localhost:8080/integration/upload-credentials', { credentials: JSON.parse(credentials) }); + await axios.post('http://localhost:8080/integration/upload-credentials', { credentials: JSON.parse(credentials), spreadsheetId, range }); alert('Service Account credentials saved successfully.'); } catch (error) { console.error('Error uploading credentials:', error);