Skip to content

Commit

Permalink
fix: convert page query param to number
Browse files Browse the repository at this point in the history
  • Loading branch information
ip512 committed May 30, 2024
1 parent dd46fcd commit 4c1e68e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Infrastructure/Common/DTO/PaginationDTO.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { Type } from 'class-transformer';
import { IsNumber, IsOptional, Max, Min } from 'class-validator';

export class PaginationDTO {
@IsOptional()
@Type(() => Number)
@Min(1)
@Max(10000)
@IsNumber()
Expand Down

0 comments on commit 4c1e68e

Please sign in to comment.