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 9d9eee7..9ead291 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 @@ -396,7 +396,7 @@ class LiveRoomQueryRepositoryImpl( .and(subLiveRoom.channelName.isNotNull) .and(subLiveRoom.member.role.eq(MemberRole.CREATOR)) .and(subLiveRoom.member.isActive.isTrue) - .and(subLiveRoom.updatedAt.goe(LocalDateTime.now().minusWeeks(2))) + .and(subLiveRoom.updatedAt.goe(LocalDateTime.now().minusWeeks(1))) ) .groupBy(subLiveRoom.member.id) @@ -412,8 +412,11 @@ class LiveRoomQueryRepositoryImpl( .from(liveRoom) .innerJoin(liveRoom.member, member) .where( - Expressions.list(liveRoom.member.id, liveRoom.updatedAt) - .`in`(subQuery) + liveRoom.updatedAt.goe(LocalDateTime.now().minusWeeks(1)) + .and( + Expressions.list(liveRoom.member.id, liveRoom.updatedAt) + .`in`(subQuery) + ) ) .orderBy(liveRoom.updatedAt.desc()) .limit(20)