fix: delete import (#859)
This commit is contained in:
parent
7aa9e0bba1
commit
bd0cfef02f
2 changed files with 11 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue