Skip to content

Commit f50897c

Browse files
committed
application: 포인트 충전 금액 음수일 떄 예외 메시지 추가
1 parent 778c369 commit f50897c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/application/dtos/point.dto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class PointDto {
66
default: 1000,
77
})
88
@IsInt()
9-
@IsPositive()
9+
@IsPositive({ message: '금액은 0보다 커야 합니다.' })
1010
amount: number;
1111

1212
@ApiProperty({

0 commit comments

Comments
 (0)