Skip to content

Commit

Permalink
Merge pull request #59 from souravbhowmik1999/oblf_new_changes
Browse files Browse the repository at this point in the history
Expand the API Limit for Cohort Searches
  • Loading branch information
Sourav-Tekdi authored Sep 30, 2024
2 parents dbc42fe + 089028a commit 40bff71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/adapters/postgres/cohort-adapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down
4 changes: 2 additions & 2 deletions src/cohort/dto/cohort-search.dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,14 +115,14 @@ enum SortDirection {
}
export class CohortSearchDto {

@ApiProperty({
@ApiPropertyOptional({
type: Number,
description: "Limit",
})
@IsNumber()
limit: number;

@ApiProperty({
@ApiPropertyOptional({
type: Number,
description: "Offset",
})
Expand Down

0 comments on commit 40bff71

Please sign in to comment.