mirror of
https://github.com/hexastack/hexabot
synced 2025-02-23 04:48:51 +00:00
fix: NlpValue update make entity property optional
This commit is contained in:
parent
587181b6bc
commit
b684c6832d
@ -72,6 +72,7 @@ export class NlpValueUpdateDto {
|
|||||||
expressions?: string[];
|
expressions?: string[];
|
||||||
|
|
||||||
@ApiPropertyOptional({ description: 'Nlp value entity', type: String })
|
@ApiPropertyOptional({ description: 'Nlp value entity', type: String })
|
||||||
|
@IsOptional()
|
||||||
@IsString()
|
@IsString()
|
||||||
@IsObjectId({ message: 'Entity must be a valid ObjectId' })
|
@IsObjectId({ message: 'Entity must be a valid ObjectId' })
|
||||||
entity?: string | null;
|
entity?: string | null;
|
||||||
|
Loading…
Reference in New Issue
Block a user