From 8235aa4892edee5125cea447497b41d3516a946a Mon Sep 17 00:00:00 2001 From: Jason Gessner Date: Sat, 16 Nov 2024 03:03:45 +0000 Subject: [PATCH] Increase max page size for {card,printing} to 10000. --- app/resources/card_resource.rb | 1 + app/resources/printing_resource.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/app/resources/card_resource.rb b/app/resources/card_resource.rb index 228d78a..c82c07f 100644 --- a/app/resources/card_resource.rb +++ b/app/resources/card_resource.rb @@ -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 diff --git a/app/resources/printing_resource.rb b/app/resources/printing_resource.rb index 543b6a4..2ce1c1d 100644 --- a/app/resources/printing_resource.rb +++ b/app/resources/printing_resource.rb @@ -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