Skip to content

Commit

Permalink
zones skips the first result if not paging
Browse files Browse the repository at this point in the history
  • Loading branch information
mabels committed Jul 20, 2024
1 parent b2af165 commit 808e72b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions zones.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ func (s *ZonesService) List(ctx context.Context, params *ZoneListParams) ([]Zone
var zones []Zone
params.PerPage = defaultZonesPerPage
params.Page = 1
zones = append(zones, r.Result...)
for !params.ResultInfo.Done() {
res, _ := s.client.get(ctx, buildURI("/zones", params), nil)

Expand Down

0 comments on commit 808e72b

Please sign in to comment.