Feature/set validation rule to positive number in cash balance transfer (#2544)

* Add validation rule (positive number)

* Update changelog
This commit is contained in:
Thomas Kaul
2023-10-26 19:19:43 +02:00
committed by GitHub
parent 0af37ca1d7
commit f5ad1d2d24
2 changed files with 3 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
import { IsNumber, IsString } from 'class-validator';
import { IsNumber, IsPositive, IsString } from 'class-validator';
export class TransferBalanceDto {
@IsString()
@@ -8,5 +8,6 @@ export class TransferBalanceDto {
accountIdTo: string;
@IsNumber()
@IsPositive()
balance: number;
}