fix: 메인 홈 - 최근 콘텐츠 조회
- join 하지 않은 blockMember 제거 - 정렬 조건 추가 - id 내림차순
This commit is contained in:
parent
22fc8b22b8
commit
a4b5185f6b
|
@ -1313,7 +1313,6 @@ class AudioContentQueryRepositoryImpl(
|
||||||
audioContent.releaseDate.isNull
|
audioContent.releaseDate.isNull
|
||||||
.or(audioContent.releaseDate.loe(LocalDateTime.now()))
|
.or(audioContent.releaseDate.loe(LocalDateTime.now()))
|
||||||
)
|
)
|
||||||
.and(blockMember.id.isNull)
|
|
||||||
|
|
||||||
if (!isAdult) {
|
if (!isAdult) {
|
||||||
where = where.and(audioContent.isAdult.isFalse)
|
where = where.and(audioContent.isAdult.isFalse)
|
||||||
|
@ -1360,6 +1359,7 @@ class AudioContentQueryRepositoryImpl(
|
||||||
.where(where)
|
.where(where)
|
||||||
.offset(offset)
|
.offset(offset)
|
||||||
.limit(limit)
|
.limit(limit)
|
||||||
|
.orderBy(audioContent.id.desc())
|
||||||
.fetch()
|
.fetch()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue