refactor(f4): remove obsolete Director delivery setting
This commit is contained in:
@@ -1,2 +1,12 @@
|
|||||||
import { Transform } from 'class-transformer'; import { IsEmail,IsOptional,MaxLength } from 'class-validator';
|
import { Transform } from 'class-transformer';
|
||||||
export class UpdateDocumentDeliverySettingsDto { @IsOptional() @Transform(({value})=>typeof value==='string'&&value.trim()?value.trim().toLowerCase():null) @IsEmail() @MaxLength(320) officeEmail?:string|null; @IsOptional() @Transform(({value})=>typeof value==='string'&&value.trim()?value.trim().toLowerCase():null) @IsEmail() @MaxLength(320) directorEmail?:string|null; }
|
import { IsEmail, IsOptional, MaxLength } from 'class-validator';
|
||||||
|
|
||||||
|
export class UpdateDocumentDeliverySettingsDto {
|
||||||
|
@IsOptional()
|
||||||
|
@Transform(({ value }) =>
|
||||||
|
typeof value === 'string' && value.trim() ? value.trim().toLowerCase() : null,
|
||||||
|
)
|
||||||
|
@IsEmail()
|
||||||
|
@MaxLength(320)
|
||||||
|
officeEmail?: string | null;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user