Skip to content

Commit

Permalink
actually delete the app (#48)
Browse files Browse the repository at this point in the history
Signed-off-by: Rajat Jindal <[email protected]>
  • Loading branch information
rajatjindal authored May 17, 2023
1 parent d2cb701 commit 7f8c6c3
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
6 changes: 3 additions & 3 deletions dist/spin/deploy/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/spin/preview/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/spin/push/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/spin/setup/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions src/cloud.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export class Client {
}

async deleteAppById(id: string): Promise<void> {
const resp = await this._httpclient.get(`${this.base}/api/apps`)
if (resp.message.statusCode !== httpm.HttpCodes.OK) {
throw `expected code ${httpm.HttpCodes.OK}, got ${resp.message.statusCode}`
const resp = await this._httpclient.del(`${this.base}/api/apps/${id}`)
if (resp.message.statusCode !== 204) {
throw `expected code 204, got ${resp.message.statusCode}`
}
}

Expand Down

0 comments on commit 7f8c6c3

Please sign in to comment.