Skip to content

Commit 510e586

Browse files
committed
These take arrays as input
1 parent 52f21d2 commit 510e586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/client/group.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func (o *Client) AddUserToGroup(ctx context.Context, userID string, groupID stri
9898
node.Expires = expires.Unix()
9999
}
100100

101-
body, err := json.Marshal(node)
101+
body, err := json.Marshal([]*Node{&node})
102102
if err != nil {
103103
return nil, err
104104
}
@@ -121,7 +121,7 @@ func (o *Client) RemoveUserFromGroup(ctx context.Context, userID string, groupID
121121
node.Expires = expires.Unix()
122122
}
123123

124-
body, err := json.Marshal(node)
124+
body, err := json.Marshal([]*Node{&node})
125125
if err != nil {
126126
return nil, err
127127
}

0 commit comments

Comments
 (0)