Skip to content

Commit

Permalink
Merge pull request #145 from plural/update-page-size-params
Browse files Browse the repository at this point in the history
Update page[limit] to page[size] to match current API params.
  • Loading branch information
locks authored Nov 27, 2024
2 parents 617c6f8 + 9596807 commit 4decde9
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/routes/card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});

Expand Down
2 changes: 1 addition & 1 deletion app/routes/faction.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion app/routes/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/routes/page/banlists.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion app/routes/page/basic-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
2 changes: 1 addition & 1 deletion app/routes/page/cycle.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
}),
});
}
Expand Down
2 changes: 1 addition & 1 deletion app/routes/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down

0 comments on commit 4decde9

Please sign in to comment.