Skip to content

Commit

Permalink
Fix pagination within ListBusinessServices + Paginated
Browse files Browse the repository at this point in the history
When reviewing #329, I found that `ListBusinessServicesPaginated` and by proxy
`ListBusinessServices`, were not properly encoding their URL parameters,
effectively breaking pagination due to the missing ? before the values.

This adds the missing ? to the URL.
  • Loading branch information
theckman committed May 11, 2021
1 parent 424a404 commit 7b90eb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion business_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func (c *Client) ListBusinessServicesPaginated(ctx context.Context, o ListBusine
}

// Make call to get all pages associated with the base endpoint.
if err := c.pagedGet(ctx, "/business_services"+queryParms.Encode(), responseHandler); err != nil {
if err := c.pagedGet(ctx, "/business_services?"+queryParms.Encode(), responseHandler); err != nil {
return nil, err
}

Expand Down

0 comments on commit 7b90eb4

Please sign in to comment.