fix: NlpValue update make entity property optional

This commit is contained in:
yassinedorbozgithub 2025-01-15 11:57:31 +01:00
parent 587181b6bc
commit b684c6832d

View File

@ -72,6 +72,7 @@ export class NlpValueUpdateDto {
expressions?: string[];
@ApiPropertyOptional({ description: 'Nlp value entity', type: String })
@IsOptional()
@IsString()
@IsObjectId({ message: 'Entity must be a valid ObjectId' })
entity?: string | null;