Skip to content

Commit

Permalink
Merge pull request #326 from plural/max-page-size
Browse files Browse the repository at this point in the history
Increase max page size for {card,printing} to 10000.
  • Loading branch information
plural authored Nov 16, 2024
2 parents e1204d4 + 8235aa4 commit 2baf622
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/resources/card_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ class CardResource < ApplicationResource # rubocop:disable Metrics/ClassLength
primary_endpoint '/cards', %i[index show]

self.default_page_size = 1000
self.max_page_size = 10_000

attribute :id, :string
attribute :stripped_title, :string
Expand Down
1 change: 1 addition & 0 deletions app/resources/printing_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
class PrintingResource < ApplicationResource # rubocop:disable Metrics/ClassLength
primary_endpoint '/printings', %i[index show]
self.default_page_size = 1000
self.max_page_size = 10_000

attribute :id, :string
attribute :card_id, :string
Expand Down

0 comments on commit 2baf622

Please sign in to comment.