fix(chat): 채팅방 메시지 전송 API

- 빈 메시지이면 전송하지 않고 반환
This commit is contained in:
Klaus 2025-08-08 16:52:30 +09:00
parent 3e9f7f9e29
commit ebad3b31b7
1 changed files with 5 additions and 1 deletions

View File

@ -133,6 +133,10 @@ class ChatRoomController(
if (member == null) throw SodaException("로그인 정보를 확인해주세요.")
if (member.auth == null) throw SodaException("본인인증을 하셔야 합니다.")
ApiResponse.ok(chatRoomService.sendMessage(member, chatRoomId, request.message))
if (request.message.isBlank()) {
ApiResponse.error()
} else {
ApiResponse.ok(chatRoomService.sendMessage(member, chatRoomId, request.message))
}
}
}