Skip to content

Commit

Permalink
Merge branch 'issue-785' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
zmcNotafraid committed Dec 17, 2024
2 parents 40f213f + d65a837 commit 6ba3add
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/lib/fast_jsonapi/pagination_meta_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(request:, records:, page:, page_size:, total_pages: nil, records_
end

def calculated_total_pages
(total_count / @page_size).ceil
(total_count.to_f / @page_size).ceil
end

def call
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class AddressLiveCellsControllerTest < ActionDispatch::IntegrationTest
address = create(:address, :with_udt_transactions)
valid_get api_v1_address_live_cell_url(address.address_hash)

assert_equal ({ "data" => [], "meta" => { "total" => 0, "page_size" => 20 } }), json
assert_equal ({ "data" => [], "meta" => { "total" => 0, "page_size" => 20, "total_pages" => 0 } }), json
end

test "should return all live cells" do
Expand Down

0 comments on commit 6ba3add

Please sign in to comment.