Skip to content

Commit 34eda34

Browse files
committed
Actually, only remove is an array =
1 parent 510e586 commit 34eda34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/client/group.go

Lines changed: 1 addition & 1 deletion
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{&node})
101+
body, err := json.Marshal(node)
102102
if err != nil {
103103
return nil, err
104104
}

0 commit comments

Comments
 (0)