Skip to content

Commit

Permalink
Release 2023-11-07 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannaPeanut authored Nov 7, 2023
2 parents e52e0a6 + 23fe270 commit 41cd61f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/subsections/queries/getSubsections.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default resolver.pipe(
where,
orderBy = { order: "asc" },
skip = 0,
take = 100,
take = 500,
}: GetSubsectionsInput) => {
const safeWhere = { project: { slug: projectSlug }, ...where }

Expand All @@ -31,6 +31,7 @@ export default resolver.pipe(
} = await paginate({
skip,
take,
maxTake: 501,
count: () => db.subsection.count({ where: safeWhere }),
query: (paginateArgs) =>
db.subsection.findMany({
Expand Down

0 comments on commit 41cd61f

Please sign in to comment.