Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
fix(gql): default pageSize to 100
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler committed Jan 5, 2024
1 parent 85e63d3 commit 25d3e30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/middleware/query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { BadRequestError } from '../errors';
const WARP_SORT_KEY_REGEX = /^[0-9]{12},[0-9]{13},[0-9a-f]{64}$/;
const MAX_PAGE_LIMIT = 1000;
export const queryMiddleware = async (ctx: KoaContext, next: Next) => {
const { blockHeight, sortKey, page = 1, pageSize } = ctx.query;
const { blockHeight, sortKey, page = 1, pageSize = 100 } = ctx.query;

logger.debug('Query params provided', {
...ctx.query,
Expand Down

0 comments on commit 25d3e30

Please sign in to comment.