diff --git a/src/main/kotlin/codel/chat/presentation/ChatController.kt b/src/main/kotlin/codel/chat/presentation/ChatController.kt index 6e344b0..3595b2e 100644 --- a/src/main/kotlin/codel/chat/presentation/ChatController.kt +++ b/src/main/kotlin/codel/chat/presentation/ChatController.kt @@ -97,7 +97,13 @@ class ChatController( if (body.success && body.chat != null) { sendQuestionWebSocketMessages(chatRoomId, requester, body.chat) } - response + // Map으로 직접 응답 구성 (SavedChatDto.partner 직렬화 시 LazyInitializationException 방지) + ResponseEntity.ok(mapOf( + "success" to body.success, + "question" to body.question, + "chat" to body.chat?.chatResponse, + "exhaustedMessage" to body.exhaustedMessage + )) } is QuestionSendResult -> { sendQuestionWebSocketMessages(chatRoomId, requester, body)