메뉴판 가져오기

- 메뉴판이 없을 때 예외처리 수정
This commit is contained in:
Klaus 2024-03-06 13:43:03 +09:00
parent ae04b22b2a
commit 97d44104e1
1 changed files with 0 additions and 4 deletions

View File

@ -69,10 +69,6 @@ class LiveRoomMenuService(
fun getLiveMenu(creatorId: Long): GetMenuResponse? {
val menuList = repository.findByCreatorId(creatorId = creatorId)
if (menuList.isEmpty()) {
throw SodaException("설정된 메뉴판이 없습니다.")
}
var activeMenu: LiveRoomMenu? = null
for (menu in menuList) {
if (menu.isActive) {