From 9596807ea740a42f9efc6351bcd19dcf87a490d7 Mon Sep 17 00:00:00 2001 From: Jason Gessner Date: Mon, 25 Nov 2024 21:15:54 -0600 Subject: [PATCH] Update page[limit] to page[size] to match current API params. --- app/routes/card.js | 2 +- app/routes/faction.js | 2 +- app/routes/home.js | 2 +- app/routes/page/banlists.js | 2 +- app/routes/page/basic-search.js | 2 +- app/routes/page/cycle.js | 2 +- app/routes/search.js | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/routes/card.js b/app/routes/card.js index f5d74fa..b96eae7 100644 --- a/app/routes/card.js +++ b/app/routes/card.js @@ -25,7 +25,7 @@ export default class CardRoute extends Route { } let cardSetPrintings = await this.store.query('printing', { filter: { card_set_id: printing.cardSetId }, - page: { limit: 1000 }, + page: { size: 1000 }, sort: 'id', }); diff --git a/app/routes/faction.js b/app/routes/faction.js index f63c154..9a04ddb 100644 --- a/app/routes/faction.js +++ b/app/routes/faction.js @@ -26,7 +26,7 @@ export default class FactionRoute extends Route { id.decklists = this.store.query('decklist', { filter: { identity_card_id: id.id }, sort: '-created_at', - page: { limit: 3 }, + page: { size: 3 }, }); }); return ids; diff --git a/app/routes/home.js b/app/routes/home.js index c861c0b..48423db 100644 --- a/app/routes/home.js +++ b/app/routes/home.js @@ -9,7 +9,7 @@ export default class HomeRoute extends Route { async model() { let decklists = await this.store.findAll('decklist', { filter: { sort: '-created_at' }, - page: { limit: 10 }, + page: { size: 10 }, }); // Set the latest decklist in the API as the dotw (temporary selection process) diff --git a/app/routes/page/banlists.js b/app/routes/page/banlists.js index a099c02..ef32662 100644 --- a/app/routes/page/banlists.js +++ b/app/routes/page/banlists.js @@ -85,7 +85,7 @@ export default class PageBanlistsRoute extends Route { distinct_cards: true, }, include: ['card', 'card_set', 'card_type', 'faction'], - page: { limit: 2000 }, + page: { size: 2000 }, }); const cards = new Map(); diff --git a/app/routes/page/basic-search.js b/app/routes/page/basic-search.js index 5a98c77..eafa3df 100644 --- a/app/routes/page/basic-search.js +++ b/app/routes/page/basic-search.js @@ -19,7 +19,7 @@ export default class PageBasicSearchRoute extends Route { printings: this.store.query('printing', { filter: { search: params.query }, include: ['card_set', 'card_type', 'faction'], - page: { limit: params.max_records || 100 }, + page: { size: params.max_records || 100 }, }), query: params.query, }); diff --git a/app/routes/page/cycle.js b/app/routes/page/cycle.js index c9f1211..4bcca0b 100644 --- a/app/routes/page/cycle.js +++ b/app/routes/page/cycle.js @@ -11,7 +11,7 @@ export default class PageCycleRoute extends Route { printings: this.store.query('printing', { filter: { card_cycle_id: params.id }, include: ['card_set', 'card_type', 'faction'], - page: { limit: 1000 }, + page: { size: 1000 }, }), }); } diff --git a/app/routes/search.js b/app/routes/search.js index 9853f33..a4e173d 100644 --- a/app/routes/search.js +++ b/app/routes/search.js @@ -19,7 +19,7 @@ export default class SearchRoute extends Route { printings: this.store.query('printing', { filter: { search: params.query }, include: ['card_set', 'card_type', 'faction'], - page: { limit: params.max_records || 100 }, + page: { size: params.max_records || 100 }, }), query: params.query, });