From 3dad5a0c41e688582cc084dd7a1c18bc53a18c20 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Thu, 19 Sep 2024 09:14:31 +0530 Subject: [PATCH] chore: lint --- src/api/interpretation.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/interpretation.ts b/src/api/interpretation.ts index 7e2e3f39..768d56d7 100644 --- a/src/api/interpretation.ts +++ b/src/api/interpretation.ts @@ -6,7 +6,7 @@ export const handleUploadCredentials = async (fileName: any, credentials: any, s const response = await axios.post('http://localhost:8080/integration/upload-credentials', { fileName, credentials: JSON.parse(credentials), spreadsheetId, range }); if (response.status === 200) { return response.data; - } else { + } else { throw new Error(`Couldn't make gsheet integration for ${fileName}`); } } catch (error) { @@ -18,12 +18,12 @@ export const handleUploadCredentials = async (fileName: any, credentials: any, s 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 { + } else { throw new Error(`Couldn't make gsheet integration for ${fileName}`); } } catch (error) {