Skip to content

Commit

Permalink
refactor: offsetUserID
Browse files Browse the repository at this point in the history
  • Loading branch information
tenstad committed Jan 15, 2025
1 parent 7e76c6c commit 177eae1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/sdk/cloudian/sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,15 @@ func NewClient(baseURL string, authHeader string, opts ...func(*Client)) *Client
}

// List all users of a group.
func (client Client) ListUsers(ctx context.Context, groupID string, offsetUserID *string) ([]User, error) {
func (client Client) ListUsers(ctx context.Context, groupID string, userID *string) ([]User, error) {
params := map[string]string{
"groupId": groupID,
"userType": "all",
"userStatus": "all",
"limit": strconv.Itoa(ListLimit),
}
if offsetUserID != nil {
params["offset"] = *offsetUserID
if userID != nil {
params["offset"] = *userID
}

var users []User
Expand Down

0 comments on commit 177eae1

Please sign in to comment.