chore: lint
This commit is contained in:
@@ -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 });
|
const response = await axios.post('http://localhost:8080/integration/upload-credentials', { fileName, credentials: JSON.parse(credentials), spreadsheetId, range });
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
return response.data;
|
return response.data;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Couldn't make gsheet integration for ${fileName}`);
|
throw new Error(`Couldn't make gsheet integration for ${fileName}`);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@@ -18,12 +18,12 @@ export const handleUploadCredentials = async (fileName: any, credentials: any, s
|
|||||||
export const handleWriteToGsheet = async (fileName: string, runId: string): Promise<{
|
export const handleWriteToGsheet = async (fileName: string, runId: string): Promise<{
|
||||||
success: boolean;
|
success: boolean;
|
||||||
message: string;
|
message: string;
|
||||||
}> => {
|
}> => {
|
||||||
try {
|
try {
|
||||||
const response = await axios.post(`http://localhost:8080/integration/update-google-sheet/${fileName}/${runId}`);
|
const response = await axios.post(`http://localhost:8080/integration/update-google-sheet/${fileName}/${runId}`);
|
||||||
if (response.status === 200) {
|
if (response.status === 200) {
|
||||||
return response.data;
|
return response.data;
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Couldn't make gsheet integration for ${fileName}`);
|
throw new Error(`Couldn't make gsheet integration for ${fileName}`);
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Reference in New Issue
Block a user