From 177eae18afc859641faf54fa71381c8214501dd6 Mon Sep 17 00:00:00 2001 From: Amund Tenstad Date: Wed, 15 Jan 2025 15:39:45 +0100 Subject: [PATCH] refactor: offsetUserID --- internal/sdk/cloudian/sdk.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/sdk/cloudian/sdk.go b/internal/sdk/cloudian/sdk.go index 0a2fdaa..792365d 100644 --- a/internal/sdk/cloudian/sdk.go +++ b/internal/sdk/cloudian/sdk.go @@ -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