fix: 최근 종료한 라이브 API 오류 수정
This commit is contained in:
parent
1a6a331ad8
commit
741a1282a3
|
@ -394,7 +394,7 @@ class LiveRoomQueryRepositoryImpl(
|
|||
member.nickname,
|
||||
member.profileImage.prepend("/").prepend(cloudFrontHost),
|
||||
liveRoom.title,
|
||||
liveRoom.updatedAt.max()
|
||||
liveRoom.updatedAt
|
||||
)
|
||||
)
|
||||
.from(liveRoom)
|
||||
|
@ -404,12 +404,14 @@ class LiveRoomQueryRepositoryImpl(
|
|||
.eq(
|
||||
JPAExpressions.select(subLiveRoom.updatedAt.max())
|
||||
.from(subLiveRoom)
|
||||
.where(subLiveRoom.member.eq(liveRoom.member))
|
||||
.where(
|
||||
subLiveRoom.member.eq(liveRoom.member)
|
||||
.and(subLiveRoom.isActive.isFalse)
|
||||
.and(subLiveRoom.channelName.isNotNull)
|
||||
)
|
||||
.and(liveRoom.isActive.isFalse)
|
||||
.and(liveRoom.channelName.isNotNull)
|
||||
)
|
||||
.orderBy(liveRoom.updatedAt.max().desc())
|
||||
)
|
||||
.orderBy(liveRoom.updatedAt.desc())
|
||||
.offset(offset)
|
||||
.limit(20)
|
||||
.fetch()
|
||||
|
|
Loading…
Reference in New Issue