Skip to content

Commit 065e0ac

Browse files
committed
fix: correct ApiProperty type definition for messages in UserAiChatWithMessagesRO
1 parent f51507c commit 065e0ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • backend/src/entities/ai/ai-conversation-history/application/response-objects

backend/src/entities/ai/ai-conversation-history/application/response-objects/user-ai-chat.ro.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ export class UserAiChatRO {
3030
}
3131

3232
export class UserAiChatWithMessagesRO extends UserAiChatRO {
33-
@ApiProperty({ type: [AiChatMessageRO], description: 'List of messages in the chat' })
33+
@ApiProperty({ type: AiChatMessageRO, isArray: true, description: 'List of messages in the chat' })
3434
messages: AiChatMessageRO[];
3535
}

0 commit comments

Comments
 (0)