Compare commits

..

No commits in common. "4c935c3beeec23f4403cc3fe36efa99c65f29a54" and "c160dd791f5bf56ab30312bc583ac19e80982afe" have entirely different histories.

2 changed files with 0 additions and 18 deletions

View File

@ -52,7 +52,6 @@ interface LiveRoomQueryRepository {
fun getDonationTotal(roomId: Long, isLiveCreator: Boolean): Int?
fun getDonationList(roomId: Long, isLiveCreator: Boolean): List<GetLiveRoomDonationItem>
fun getRoomActiveAndChannelNameIsNotNull(memberId: Long): List<LiveRoom>
fun getActiveRoomIdList(memberId: Long): Int
}
class LiveRoomQueryRepositoryImpl(
@ -284,17 +283,4 @@ class LiveRoomQueryRepositoryImpl(
)
.fetch()
}
override fun getActiveRoomIdList(memberId: Long): Int {
return queryFactory
.select(liveRoom.id)
.from(liveRoom)
.where(
liveRoom.isActive.isTrue
.and(liveRoom.channelName.isNull)
.and(liveRoom.member.id.eq(memberId))
)
.fetch()
.size
}
}

View File

@ -247,10 +247,6 @@ class LiveRoomService(
@Transactional
fun createLiveRoom(coverImage: MultipartFile?, requestString: String, member: Member): CreateLiveRoomResponse {
if (repository.getActiveRoomIdList(memberId = member.id!!) >= 3) {
throw SodaException("예약 라이브는 최대 3개까지 가능합니다.")
}
val request = objectMapper.readValue(requestString, CreateLiveRoomRequest::class.java)
if (request.coverImageUrl == null && coverImage == null) {
throw SodaException("커버이미지를 선택해 주세요.")