Skip to content

Commit

Permalink
Update integrations.js
Browse files Browse the repository at this point in the history
  • Loading branch information
wkarts authored Sep 8, 2024
1 parent 269bd73 commit 4ba3157
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/javascript/dashboard/api/integrations.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@ class IntegrationsAPI extends ApiClient {
return axios.get(`${this.baseUrl()}/integrations/captain/sso_url`);
}

getSettings() {
return axios.get(`/api/v1/accounts/${window.accountId}/integrations/typebot/settings`);
getTypebotSettings() {
return axios.get(`${this.baseUrl()}/integrations/typebot/settings`);
}

saveSettings(settings) {
return axios.post(`/api/v1/accounts/${window.accountId}/integrations/typebot/settings`, { settings });
saveTypebotSettings(settings) {
return axios.post(`${this.baseUrl()}/integrations/typebot/settings`, { settings });
}
}

Expand Down

0 comments on commit 4ba3157

Please sign in to comment.