Skip to content

Commit

Permalink
:p: Apply pagination workaround to GET requests only
Browse files Browse the repository at this point in the history
  • Loading branch information
jsnjack committed May 22, 2023
1 parent 9bec061 commit 2621f9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ func makev4APIRequest(method string, url string, payload io.Reader, expectedStat
// https://tiggee.freshdesk.com/support/tickets/72504
// As a workaround we will request one extra page before finishing
// the loop over all pages
if resp.Meta.Pagination.PerPage == resp.Meta.Pagination.Count {
if method == "GET" && resp.Meta.Pagination.PerPage == resp.Meta.Pagination.Count {
parsedURL, err := libURL.Parse(url)
if err != nil {
return nil, err
Expand Down

0 comments on commit 2621f9b

Please sign in to comment.