Skip to content

Commit fbb0af1

Browse files
authored
Change deleteOrganizationDomain method name to delete to match other methods (#1324)
## Description Updates the delete organization domain method (recently merged) to match the other method names in the `organizationDomains` namespace from `deleteOrganizationDomain` to `delete` ## Documentation Does this require changes to the WorkOS Docs? E.g. the [API Reference](https://workos.com/docs/reference) or code snippets need updates. ``` [x] Yes ``` If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required. workos/workos#42288
1 parent cb3d40a commit fbb0af1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/organization-domains/organization-domains.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ describe('OrganizationDomains', () => {
9292
});
9393
});
9494

95-
describe('deleteOrganizationDomain', () => {
95+
describe('delete', () => {
9696
it('deletes an Organization Domain', async () => {
9797
fetchOnce();
9898

99-
await workos.organizationDomains.deleteOrganizationDomain(
99+
await workos.organizationDomains.delete(
100100
'org_domain_01HCZRAP3TPQ0X0DKJHR32TATG',
101101
);
102102

src/organization-domains/organization-domains.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export class OrganizationDomains {
3838
return deserializeOrganizationDomain(data);
3939
}
4040

41-
async deleteOrganizationDomain(id: string): Promise<void> {
41+
async delete(id: string): Promise<void> {
4242
await this.workos.delete(`/organization_domains/${id}`);
4343
}
4444
}

0 commit comments

Comments
 (0)