Improve form in account dialog (#2408)

* Improve form in account dialog

* Update changelog
This commit is contained in:
Sanjeev Sharma
2023-10-03 23:04:04 +05:30
committed by GitHub
parent aa24b5e8c6
commit 4fb88859b2
5 changed files with 54 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ import { isString } from 'lodash';
export class CreateAccountDto {
@IsOptional()
@IsString()
accountType: AccountType;
accountType?: AccountType;
@IsNumber()
balance: number;

View File

@@ -12,7 +12,7 @@ import { isString } from 'lodash';
export class UpdateAccountDto {
@IsOptional()
@IsString()
accountType: AccountType;
accountType?: AccountType;
@IsNumber()
balance: number;