feat: -rm handleWriteToSheet
This commit is contained in:
@@ -9,15 +9,4 @@ export const handleUploadCredentials = async (credentials: any) => {
|
|||||||
console.error('Error uploading credentials:', error);
|
console.error('Error uploading credentials:', error);
|
||||||
alert('Failed to upload credentials.');
|
alert('Failed to upload credentials.');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
export const handleWriteToSheet = async (spreadsheetId: any, range: any) => {
|
|
||||||
try {
|
|
||||||
await axios.post('http://localhost:8080/integration/write-to-sheet', { spreadsheetId, range });
|
|
||||||
alert('Data written to Google Sheet successfully.');
|
|
||||||
} catch (error) {
|
|
||||||
console.error('Error writing to Google Sheet:', error);
|
|
||||||
alert('Failed to write to Google Sheet.');
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user