Compare commits
No commits in common. "28f58c7f56777c30a87910fd1d0e7f2a3f375ef1" and "8bd46d8f214706999e61e0fe2386ac407810517d" have entirely different histories.
28f58c7f56
...
8bd46d8f21
|
@ -874,6 +874,13 @@ 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("해당하는 라이브의 정보가 없습니다.")
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue