Skip to content

Commit

Permalink
fix: increase pages list limit to 200
Browse files Browse the repository at this point in the history
  • Loading branch information
adrians5j committed Aug 12, 2020
1 parent e8cdb64 commit af8f8cc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export default async ({ menu, context }: { [key: string]: any }) => {
const ids = Object.keys(context.distinctParents.data);

await listPublishedPages({
limit: 200,
args: { parent: ids },
context
}).then(results => {
Expand All @@ -113,6 +114,7 @@ export default async ({ menu, context }: { [key: string]: any }) => {
const { category, sortBy, sortDir, tags } = item;

item.children = await listPublishedPages({
limit: 200,
args: { tags, category, sort: { [sortBy]: parseInt(sortDir) } },
context
});
Expand Down

0 comments on commit af8f8cc

Please sign in to comment.