Skip to content

Commit

Permalink
pagination for teams
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHeber committed Nov 19, 2024
1 parent c3f4382 commit c1f4247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/team.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (client *ApiClient) GetTeams(params map[string]string) ([]Team, error) {
teams = append(teams, res.Teams...)

nextPageKey := res.NextPageKey
if nextPageKey == "" {
if nextPageKey == "" || len(res.Teams) == 0 {
break
}

Expand Down

0 comments on commit c1f4247

Please sign in to comment.