Skip to content

Commit

Permalink
fix conflict
Browse files Browse the repository at this point in the history
Signed-off-by: Miles Zhang <[email protected]>
  • Loading branch information
zmcNotafraid committed Dec 17, 2024
2 parents fa1ea8c + 1e120e3 commit 40f213f
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -11,7 +11,7 @@ def initialize(request:, records:, page:, page_size:, total_pages: nil, records_
@records_counter = records_counter || records
@total_count = total_count || @records_counter.total_count.to_i
@total_pages = total_pages || calculated_total_pages
@hash = { links: {}, meta: { total: @total_count, page_size: @page_size } }
@hash = { links: {}, meta: { total: @total_count, page_size: @page_size, total_pages: @total_pages } }
end

def calculated_total_pages
Expand Down

0 comments on commit 40f213f

Please sign in to comment.