Skip to content

Commit

Permalink
Request all pages when listing workspace users (#208)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogerheijde authored Jul 27, 2022
1 parent 109baec commit 6bc9a3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,8 @@ func (c *client) GetUser(p GetUser) (dto.User, error) {
}

us, err := c.WorkspaceUsers(WorkspaceUsersParam{
Workspace: p.Workspace,
Workspace: p.Workspace,
PaginationParam: AllPages(),
})
if err != nil {
return dto.User{}, errors.Wrapf(err, "get user %s", p.UserID)
Expand Down

0 comments on commit 6bc9a3d

Please sign in to comment.