Depends on: https://github.com/chatwoot/chatwoot/pull/14370 This PR creates a new onboarding controller, this allows more control that the default account update API. Allowing us to spin tasks and update details required specifically during the onboarding flow
15 lines
270 B
JavaScript
15 lines
270 B
JavaScript
/* global axios */
|
|
import ApiClient from './ApiClient';
|
|
|
|
class OnboardingAPI extends ApiClient {
|
|
constructor() {
|
|
super('onboarding', { accountScoped: true });
|
|
}
|
|
|
|
update(data) {
|
|
return axios.patch(this.url, data);
|
|
}
|
|
}
|
|
|
|
export default new OnboardingAPI();
|