Skip to content

Commit

Permalink
Fix typos for list methods - groups service accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
micszc committed Sep 3, 2024
1 parent 291685b commit 21134f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions group_serviceaccounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ type ListServiceAccountsOptions struct {
// ListServiceAccounts gets a list of service acxcounts.
//
// GitLab API docs: https://docs.gitlab.com/ee/api/group_service_accounts.html#list-service-account-users
func (s *UsersService) ListServiceAccounts(gid interface{}, opt *ListServiceAccountsOptions, options ...RequestOptionFunc) ([]*User, *Response, error) {
func (s *GroupsService) ListServiceAccounts(gid interface{}, opt *ListServiceAccountsOptions, options ...RequestOptionFunc) ([]*GroupServiceAccount, *Response, error) {
group, err := parseID(gid)
if err != nil {
return nil, nil, err
Expand All @@ -55,7 +55,7 @@ func (s *UsersService) ListServiceAccounts(gid interface{}, opt *ListServiceAcco
return nil, nil, err
}

var sa []*User
var sa []*GroupServiceAccount
resp, err := s.client.Do(req, &sa)
if err != nil {
return nil, resp, err
Expand Down

0 comments on commit 21134f2

Please sign in to comment.