Skip to content

Commit 034c47c

Browse files
authored
fix(backend): Make organizations.getOrganizationMembershipList return type paginated (clerk#2681)
1 parent f388bed commit 034c47c

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/gold-beans-obey.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/backend': patch
3+
---
4+
5+
Fix `clerkClient.organizations.getOrganizationMembershipList()` return type to be `{ data, totalCount }`

packages/backend/src/api/endpoints/OrganizationApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export class OrganizationAPI extends AbstractAPI {
174174
const { organizationId, limit, offset } = params;
175175
this.requireId(organizationId);
176176

177-
return this.request<OrganizationMembership[]>({
177+
return this.request<PaginatedResourceResponse<OrganizationMembership[]>>({
178178
method: 'GET',
179179
path: joinPaths(basePath, organizationId, 'memberships'),
180180
queryParams: { limit, offset },

0 commit comments

Comments
 (0)