Browse Source

fix(lib): update fields to accept null

pull/6831/head
KenTandrian 3 weeks ago
parent
commit
22af85435c
  1. 12
      libs/common/src/lib/dtos/update-user-setting.dto.ts

12
libs/common/src/lib/dtos/update-user-setting.dto.ts

@ -96,13 +96,21 @@ export class UpdateUserSettingDto {
@IsOptional() @IsOptional()
locale?: string; locale?: string;
/**
* The target financial amount the user aims to reach before retiring.
* Can be explicitly set to null to clear the value and calculate it dynamically.
*/
@IsNumber() @IsNumber()
@IsOptional() @IsOptional()
projectedTotalAmount?: number; projectedTotalAmount?: number | null;
/**
* The target date when the user plans to retire.
* Can be explicitly set to null to clear the value and calculate it dynamically.
*/
@IsISO8601() @IsISO8601()
@IsOptional() @IsOptional()
retirementDate?: string; retirementDate?: string | null;
@IsNumber() @IsNumber()
@IsOptional() @IsOptional()

Loading…
Cancel
Save