fix: 라이브 메인 API - 최근 종료된 라이브

- 날짜 제한 1주
This commit is contained in:
Klaus 2025-07-21 20:28:21 +09:00
parent efdb485a3b
commit f0fc996426
1 changed files with 6 additions and 3 deletions

View File

@ -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,9 +412,12 @@ class LiveRoomQueryRepositoryImpl(
.from(liveRoom)
.innerJoin(liveRoom.member, member)
.where(
liveRoom.updatedAt.goe(LocalDateTime.now().minusWeeks(1))
.and(
Expressions.list(liveRoom.member.id, liveRoom.updatedAt)
.`in`(subQuery)
)
)
.orderBy(liveRoom.updatedAt.desc())
.limit(20)
.fetch()