feat(web): clear person birthdate (#18330)

This commit is contained in:
Jason Rasmussen
2025-05-16 11:56:25 -04:00
committed by GitHub
parent a9e7d0388b
commit 28d8357cc5
7 changed files with 190 additions and 101 deletions
+2 -3
View File
@@ -33,7 +33,7 @@ export class PersonCreateDto {
@ApiProperty({ format: 'date' })
@MaxDateString(() => DateTime.now(), { message: 'Birth date cannot be in the future' })
@IsDateStringFormat('yyyy-MM-dd')
@Optional({ nullable: true })
@Optional({ nullable: true, emptyToNull: true })
birthDate?: Date | null;
/**
@@ -54,8 +54,7 @@ export class PersonUpdateDto extends PersonCreateDto {
/**
* Asset is used to get the feature face thumbnail.
*/
@Optional()
@IsString()
@ValidateUUID({ optional: true })
featureFaceAssetId?: string;
}