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);