File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -380,15 +380,16 @@ export function handle(context: IndexerContext, router: Router) {
380
380
const address = req . query . address ;
381
381
const page = req . query . page && parseInt ( req . query . page , 10 ) ;
382
382
const itemsPerPage =
383
- req . query . itemsPerPage &&
384
- parseInt ( req . query . itemsPerPage , 10 ) + 1 ;
383
+ ( req . query . itemsPerPage &&
384
+ parseInt ( req . query . itemsPerPage , 10 ) ) ||
385
+ 15 ;
385
386
const lastEvaluatedKey = req . query . lastEvaluatedKey ;
386
387
const firstEvaluatedKey = req . query . firstEvaluatedKey ;
387
388
try {
388
389
const blocks = await BlockModel . getBlocks ( {
389
390
address,
390
391
page,
391
- itemsPerPage,
392
+ itemsPerPage : itemsPerPage + 1 ,
392
393
firstEvaluatedKey,
393
394
lastEvaluatedKey
394
395
} ) . then ( instances =>
You can’t perform that action at this time.
0 commit comments