fix: delete import (#859)

This commit is contained in:
Aaryan Khandelwal 2023-04-17 18:34:18 +05:30 committed by GitHub
parent 7aa9e0bba1
commit bd0cfef02f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 4 deletions

View file

@ -43,8 +43,12 @@ class IntegrationService extends APIService {
});
}
async deleteImporterService(workspaceSlug: string, importerId: string): Promise<any> {
return this.delete(`/api/workspaces/${workspaceSlug}/importers/${importerId}/`)
async deleteImporterService(
workspaceSlug: string,
service: string,
importerId: string
): Promise<any> {
return this.delete(`/api/workspaces/${workspaceSlug}/importers/${service}/${importerId}/`)
.then((res) => res?.data)
.catch((error) => {
throw error?.response?.data;