diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomRepository.kt index ed147f8..6d2eb3d 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomRepository.kt @@ -291,6 +291,7 @@ class LiveRoomQueryRepositoryImpl( .from(liveRoom) .where( liveRoom.isActive.isTrue + .and(liveRoom.channelName.isNull) .and(liveRoom.member.id.eq(memberId)) ) .fetch() diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt index 215143d..2de3e07 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/live/room/LiveRoomService.kt @@ -248,7 +248,7 @@ class LiveRoomService( @Transactional fun createLiveRoom(coverImage: MultipartFile?, requestString: String, member: Member): CreateLiveRoomResponse { if (repository.getActiveRoomIdList(memberId = member.id!!) >= 3) { - throw SodaException("라이브 예약은 최대 3개까지 가능합니다.") + throw SodaException("예약 라이브는 최대 3개까지 가능합니다.") } val request = objectMapper.readValue(requestString, CreateLiveRoomRequest::class.java)