Merge pull request '라이브' (#204) from test into main

Reviewed-on: #204
This commit is contained in:
klaus 2024-08-14 09:34:52 +00:00
commit 28f58c7f56
1 changed files with 0 additions and 7 deletions

View File

@ -874,13 +874,6 @@ class LiveRoomService(
} }
fun getDonationMessageList(roomId: Long, member: Member): List<LiveRoomDonationMessage> { fun getDonationMessageList(roomId: Long, member: Member): List<LiveRoomDonationMessage> {
val room = repository.findByIdOrNull(roomId)
?: throw SodaException("해당하는 라이브가 없습니다.")
if (member.id!! != room.member!!.id!!) {
throw SodaException("잘못된 요청입니다.")
}
val roomInfo = roomInfoRepository.findByIdOrNull(roomId) val roomInfo = roomInfoRepository.findByIdOrNull(roomId)
?: throw SodaException("해당하는 라이브의 정보가 없습니다.") ?: throw SodaException("해당하는 라이브의 정보가 없습니다.")