Skip to content

Commit

Permalink
fix deleting; Closes #41
Browse files Browse the repository at this point in the history
  • Loading branch information
ViliamKopecky committed Apr 28, 2019
1 parent 0380914 commit 726d482
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/connector/Einstore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -239,18 +239,13 @@ export class Einstore {
const json = await res.json()
return json
}

public deleteCluster = async (id: string): Promise<Response> => {
const promise = this.networking.delete('/cluster/' + id)
const res = await promise
const json = await res.json()
return json
return this.networking.delete('/clusters/' + id)
}

public deleteApp = async (id: string): Promise<Response> => {
const promise = this.networking.delete('/apps/' + id)
const res = await promise
const json = await res.json()
return json
return this.networking.delete('/apps/' + id)
}

public addTeam = async (name: string, identifier: string): Promise<Response> => {
Expand Down

0 comments on commit 726d482

Please sign in to comment.