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) {
380380 const address = req . query . address ;
381381 const page = req . query . page && parseInt ( req . query . page , 10 ) ;
382382 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 ;
385386 const lastEvaluatedKey = req . query . lastEvaluatedKey ;
386387 const firstEvaluatedKey = req . query . firstEvaluatedKey ;
387388 try {
388389 const blocks = await BlockModel . getBlocks ( {
389390 address,
390391 page,
391- itemsPerPage,
392+ itemsPerPage : itemsPerPage + 1 ,
392393 firstEvaluatedKey,
393394 lastEvaluatedKey
394395 } ) . then ( instances =>
You can’t perform that action at this time.
0 commit comments