parent
9f2b43ea0c
commit
f1611efe7c
|
@ -291,6 +291,7 @@ class LiveRoomQueryRepositoryImpl(
|
||||||
.from(liveRoom)
|
.from(liveRoom)
|
||||||
.where(
|
.where(
|
||||||
liveRoom.isActive.isTrue
|
liveRoom.isActive.isTrue
|
||||||
|
.and(liveRoom.channelName.isNull)
|
||||||
.and(liveRoom.member.id.eq(memberId))
|
.and(liveRoom.member.id.eq(memberId))
|
||||||
)
|
)
|
||||||
.fetch()
|
.fetch()
|
||||||
|
|
|
@ -248,7 +248,7 @@ class LiveRoomService(
|
||||||
@Transactional
|
@Transactional
|
||||||
fun createLiveRoom(coverImage: MultipartFile?, requestString: String, member: Member): CreateLiveRoomResponse {
|
fun createLiveRoom(coverImage: MultipartFile?, requestString: String, member: Member): CreateLiveRoomResponse {
|
||||||
if (repository.getActiveRoomIdList(memberId = member.id!!) >= 3) {
|
if (repository.getActiveRoomIdList(memberId = member.id!!) >= 3) {
|
||||||
throw SodaException("라이브 예약은 최대 3개까지 가능합니다.")
|
throw SodaException("예약 라이브는 최대 3개까지 가능합니다.")
|
||||||
}
|
}
|
||||||
|
|
||||||
val request = objectMapper.readValue(requestString, CreateLiveRoomRequest::class.java)
|
val request = objectMapper.readValue(requestString, CreateLiveRoomRequest::class.java)
|
||||||
|
|
Loading…
Reference in New Issue