Skip to content

Commit

Permalink
fix return value
Browse files Browse the repository at this point in the history
  • Loading branch information
haukot committed Jun 7, 2023
1 parent 8058303 commit 1c23526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecwid_api/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def paginate_get(path, options = {})
result = raise_on_failure connection.get(path, request_options)
pages_count = (result[:total] / request_options[:limit].to_f).ceil

[result, current_page, pages_count]
[result[:items], current_page, pages_count]
end

def get_all(path, params={}, &block)
Expand Down

0 comments on commit 1c23526

Please sign in to comment.