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