Skip to content

Commit c90e632

Browse files
fix: pagimation validation (#308)
1 parent 4b99544 commit c90e632

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/common/dto/cursor-pagination/page-options.dto.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class PageOptionsDto {
1212
beforeCursor?: string;
1313

1414
@NumberFieldOptional({
15-
minimum: 1,
15+
min: 1,
1616
default: DEFAULT_PAGE_LIMIT,
1717
int: true,
1818
})

src/common/dto/offset-pagination/page-options.dto.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ import {
1111

1212
export class PageOptionsDto {
1313
@NumberFieldOptional({
14-
minimum: 1,
14+
min: 1,
1515
default: DEFAULT_PAGE_LIMIT,
1616
int: true,
1717
})
1818
readonly limit?: number = DEFAULT_PAGE_LIMIT;
1919

2020
@NumberFieldOptional({
21-
minimum: 1,
21+
min: 1,
2222
default: DEFAULT_CURRENT_PAGE,
2323
int: true,
2424
})

0 commit comments

Comments
 (0)