라이브 수정

- 메뉴판 활성화/비활성화 로직 수정
This commit is contained in:
Klaus 2024-03-07 05:39:16 +09:00
parent 5609bdb6f4
commit c66421b45d
2 changed files with 21 additions and 19 deletions

View File

@ -8,5 +8,5 @@ data class EditLiveRoomInfoRequest(
val timezone: String?, val timezone: String?,
val menuPanId: Long = 0, val menuPanId: Long = 0,
val menuPan: String = "", val menuPan: String = "",
val isActiveMenuPan: Boolean val isActiveMenuPan: Boolean? = null
) )

View File

@ -674,6 +674,7 @@ class LiveRoomService(
.toLocalDateTime() .toLocalDateTime()
} }
if (request.isActiveMenuPan != null) {
if (request.isActiveMenuPan) { if (request.isActiveMenuPan) {
if (request.menuPanId > 0) { if (request.menuPanId > 0) {
menuService.updateLiveMenu( menuService.updateLiveMenu(
@ -698,6 +699,7 @@ class LiveRoomService(
} }
} }
} }
}
fun getRoomInfo(roomId: Long, member: Member): GetRoomInfoResponse { fun getRoomInfo(roomId: Long, member: Member): GetRoomInfoResponse {
val roomInfo = roomInfoRepository.findByIdOrNull(roomId) val roomInfo = roomInfoRepository.findByIdOrNull(roomId)