Skip to content

Commit 288e48a

Browse files
Potential fix for pull request finding
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
1 parent c084233 commit 288e48a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/modules/vendors/dto/vendor-list-query.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class VendorListQueryDto {
3232
maximum: 100,
3333
})
3434
@IsOptional()
35-
@Transform(({ value }) => parseInt(value, 10))
35+
@Transform(({ value }) => (value === undefined ? 20 : Number(value)))
3636
@IsInt()
3737
@Min(1)
3838
@Max(100)

0 commit comments

Comments
 (0)