Skip to content

Commit

Permalink
fix(backend): Added missing organizationId to UserCountParams for get…
Browse files Browse the repository at this point in the history
…UserList (#3240)

* fix(backend): Added missing organizationId to UserCountParams for getUserList

* fix(backend): Moved param to UserListParams as per PR review

* fix(backend): Moved lasst_active_at_since to UserListParams

See
#3240 (comment)
for context
  • Loading branch information
royanger authored Apr 23, 2024
1 parent de1d75d commit 65503dc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .changeset/tasty-ghosts-kick.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@clerk/backend': patch
---

Added missing 'organizationId' parameter to UserListParams
Moved last_active_at_since from UserCountParams to UserListParams
3 changes: 2 additions & 1 deletion packages/backend/src/api/endpoints/UserApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ type UserCountParams = {
query?: string;
userId?: string[];
externalId?: string[];
last_active_at_since?: number;
};

type UserListParams = ClerkPaginationRequest<
Expand All @@ -32,6 +31,8 @@ type UserListParams = ClerkPaginationRequest<
| '+last_active_at'
| '-last_sign_in_at'
| '-last_active_at';
last_active_at_since?: number;
organizationId?: string[];
}
>;

Expand Down

0 comments on commit 65503dc

Please sign in to comment.