summaryrefslogtreecommitdiff
path: root/lib/bitbucket/paginator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket/paginator.rb')
-rw-r--r--lib/bitbucket/paginator.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/bitbucket/paginator.rb b/lib/bitbucket/paginator.rb
index 641a6ed79d6..b38cd99855c 100644
--- a/lib/bitbucket/paginator.rb
+++ b/lib/bitbucket/paginator.rb
@@ -7,8 +7,6 @@ module Bitbucket
@type = type
@url = url
@page = nil
-
- connection.set_default_query_parameters(pagelen: PAGE_LENGTH, sort: :created_on)
end
def items
@@ -31,7 +29,7 @@ module Bitbucket
end
def fetch_next_page
- parsed_response = connection.get(next_url)
+ parsed_response = connection.get(next_url, { pagelen: PAGE_LENGTH, sort: :created_on })
Page.new(parsed_response, type)
end
end