diff --git a/packages/whale-api-client/__tests__/api/blocks.test.ts b/packages/whale-api-client/__tests__/api/blocks.test.ts index b98551a2d..37baae7f5 100644 --- a/packages/whale-api-client/__tests__/api/blocks.test.ts +++ b/packages/whale-api-client/__tests__/api/blocks.test.ts @@ -66,10 +66,10 @@ describe('list', () => { expect(last.hasNext).toStrictEqual(false) }) - it('should get paginated list of 60 even if request page size is more than 60', async () => { - const first = await client.blocks.list(100) + it('should get paginated list of 100 even if request page size is more than 100', async () => { + const first = await client.blocks.list(150) - expect(first.length).toStrictEqual(60) + expect(first.length).toStrictEqual(100) expect(first[0]).toStrictEqual(ExpectedBlock) }) diff --git a/src/module.api/_core/api.query.ts b/src/module.api/_core/api.query.ts index 7229e7fa6..4e1b6ef02 100644 --- a/src/module.api/_core/api.query.ts +++ b/src/module.api/_core/api.query.ts @@ -11,7 +11,7 @@ import { Type, Transform } from 'class-transformer' export class PaginationQuery { @IsOptional() @IsInt() - @Transform(({ value }) => value > 60 ? 60 : value) + @Transform(({ value }) => value > 100 ? 100 : value) @Min(0) @Type(() => Number) size: number = 30