From 089028adc7c422d0a13e61406c02fe486279f127 Mon Sep 17 00:00:00 2001 From: souravbhowmik1999 Date: Mon, 30 Sep 2024 17:11:41 +0530 Subject: [PATCH] Incrise limit --- src/adapters/postgres/cohort-adapter.ts | 2 +- src/cohort/dto/cohort-search.dto.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/adapters/postgres/cohort-adapter.ts b/src/adapters/postgres/cohort-adapter.ts index ad26e045..77fa112d 100644 --- a/src/adapters/postgres/cohort-adapter.ts +++ b/src/adapters/postgres/cohort-adapter.ts @@ -491,7 +491,7 @@ export class PostgresCohortService { let { limit, sort, offset, filters } = cohortSearchDto; offset = offset || 0; - limit = limit || 200; + limit = limit || 10000; const emptyValueKeys = {}; let emptyKeysString = ""; diff --git a/src/cohort/dto/cohort-search.dto.ts b/src/cohort/dto/cohort-search.dto.ts index 918898ef..7ba54c80 100644 --- a/src/cohort/dto/cohort-search.dto.ts +++ b/src/cohort/dto/cohort-search.dto.ts @@ -115,14 +115,14 @@ enum SortDirection { } export class CohortSearchDto { - @ApiProperty({ + @ApiPropertyOptional({ type: Number, description: "Limit", }) @IsNumber() limit: number; - @ApiProperty({ + @ApiPropertyOptional({ type: Number, description: "Offset", })