mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: apply feedbacsk
This commit is contained in:
parent
efc3ebb9b6
commit
43f92b7774
@ -46,7 +46,7 @@ export class ConversationCreateDto {
|
|||||||
@IsObjectId({
|
@IsObjectId({
|
||||||
message: 'Current must be a valid objectId',
|
message: 'Current must be a valid objectId',
|
||||||
})
|
})
|
||||||
current?: string;
|
current?: string | null;
|
||||||
|
|
||||||
@ApiProperty({ description: 'next conversation', type: Array })
|
@ApiProperty({ description: 'next conversation', type: Array })
|
||||||
@IsOptional()
|
@IsOptional()
|
||||||
|
@ -80,8 +80,8 @@ export class Conversation extends ConversationStub {
|
|||||||
@Transform(({ obj }) => obj.sender.toString())
|
@Transform(({ obj }) => obj.sender.toString())
|
||||||
sender: string;
|
sender: string;
|
||||||
|
|
||||||
@Transform(({ obj }) => obj.current.toString())
|
@Transform(({ obj }) => (obj.current ? obj.current.toString() : null))
|
||||||
current: string;
|
current: string | null;
|
||||||
|
|
||||||
@Transform(({ obj }) => obj.next.map((elem) => elem.toString()))
|
@Transform(({ obj }) => obj.next.map((elem) => elem.toString()))
|
||||||
next: string[];
|
next: string[];
|
||||||
|
Loading…
Reference in New Issue
Block a user