From 08e149b4e8bfcc1bcf567feef1dc2ae8cb8bb6f6 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 19 Sep 2024 18:26:51 +0530 Subject: [PATCH] feat: remove handleWriteToGSheet --- src/api/integration.ts | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/api/integration.ts b/src/api/integration.ts index 768d56d7..5a7432b6 100644 --- a/src/api/integration.ts +++ b/src/api/integration.ts @@ -13,21 +13,4 @@ export const handleUploadCredentials = async (fileName: any, credentials: any, s console.error('Error uploading credentials:', error); return false; } -}; - -export const handleWriteToGsheet = async (fileName: string, runId: string): Promise<{ - success: boolean; - message: string; -}> => { - try { - const response = await axios.post(`http://localhost:8080/integration/update-google-sheet/${fileName}/${runId}`); - if (response.status === 200) { - return response.data; - } else { - throw new Error(`Couldn't make gsheet integration for ${fileName}`); - } - } catch (error) { - console.error('Error uploading credentials:', error); - return { success: false, message: 'Failed to write to Google Sheet' }; - } }; \ No newline at end of file