Skip to content

Commit 138d9d8

Browse files
committed
refactor: rename current deploy webhook url method
1 parent 195a5a4 commit 138d9d8

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.changeset/hungry-cherries-look.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@squarecloud/api": patch
3+
---
4+
5+
Rename `deploys#current()` to `deploys#webhookURL()`.

src/modules/deploys.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@ export class DeploysModule {
2929
Routes.apps.deployments.list(this.application.id),
3030
);
3131

32-
return data?.response;
32+
return data.response;
3333
}
3434

3535
/**
36-
* Gets the current deployment URL
36+
* Gets the current webhook URL
3737
*/
38-
async current() {
38+
async webhookURL() {
3939
const data = await this.application.client.api.request(
4040
Routes.apps.deployments.current(this.application.id),
4141
);
4242

43-
return data?.response;
43+
return data.response.webhook;
4444
}
4545
}

0 commit comments

Comments
 (0)