예약 후 시작하지 않은 라이브 조건 수정 - 채널 이름이 없는 라이브만 취소되도록 수정

This commit is contained in:
Klaus 2023-10-04 11:22:41 +09:00
parent f6e9c6d010
commit 75efb564fc
1 changed files with 2 additions and 2 deletions

View File

@ -43,8 +43,8 @@ class AdminLiveRoomQueryRepository(private val queryFactory: JPAQueryFactory) {
.selectFrom(liveRoom)
.where(
liveRoom.isActive.isTrue
.and(liveRoom.channelName.isNotNull)
.and(liveRoom.beginDateTime.loe(LocalDateTime.now().minusHours(12)))
.and(liveRoom.channelName.isNull)
.and(liveRoom.beginDateTime.loe(LocalDateTime.now().minusHours(4)))
)
.fetch()
}