diff --git a/server/notification-providers/google-sheets.js b/server/notification-providers/google-sheets.js index 8c8ec1581..fc74a6b55 100644 --- a/server/notification-providers/google-sheets.js +++ b/server/notification-providers/google-sheets.js @@ -32,8 +32,6 @@ class GoogleSheets extends NotificationProvider { } // Send data to Google Apps Script webhook - const webhookUrl = notification.googleSheetsWebhookUrl; - const config = this.getAxiosConfigWithProxy({ headers: { "Content-Type": "application/json" @@ -50,7 +48,7 @@ class GoogleSheets extends NotificationProvider { statusCode }; - await axios.post(webhookUrl, data, config); + await axios.post(notification.googleSheetsWebhookUrl, data, config); return okMsg; } catch (error) { diff --git a/src/components/notifications/GoogleSheets.vue b/src/components/notifications/GoogleSheets.vue index 2f167b3ce..f702a94b4 100644 --- a/src/components/notifications/GoogleSheets.vue +++ b/src/components/notifications/GoogleSheets.vue @@ -1,13 +1,12 @@