Skip to content

Commit

Permalink
update team get by name
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Nov 19, 2024
1 parent f11ffc1 commit 8fbe16f
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions client/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,18 +94,5 @@ func (client *ApiClient) Teams() ([]Team, error) {
}

func (client *ApiClient) TeamsByName(name string) ([]Team, error) {
organizationId, err := client.OrganizationId()
if err != nil {
return nil, err
}

var result []Team

if err := client.http.Get("/teams/organizations/"+organizationId, map[string]string{
"name": name,
}, &result); err != nil {
return nil, err
}

return result, nil
return client.GetTeams(map[string]string{"name": name})
}

0 comments on commit 8fbe16f

Please sign in to comment.