fix: 메인 홈 API - 최신 콘텐츠

- 무료/유료 콘텐츠 모두 조회 되도록 수정
This commit is contained in:
Klaus 2025-07-15 01:32:45 +09:00
parent 0d2daf4d2c
commit 9ad6b6ea48
2 changed files with 4 additions and 8 deletions

View File

@ -1336,10 +1336,8 @@ class AudioContentQueryRepositoryImpl(
where = where.and(audioContentTheme.theme.`in`(theme)) where = where.and(audioContentTheme.theme.`in`(theme))
} }
where = if (isFree) { if (isFree) {
where.and(audioContent.price.loe(0)) where = where.and(audioContent.price.loe(0))
} else {
where.and(audioContent.price.gt(0))
} }
return queryFactory return queryFactory

View File

@ -55,10 +55,8 @@ class AudioContentThemeQueryRepository(
} }
} }
where = if (isFree) { if (isFree) {
where.and(audioContent.price.loe(0)) where = where.and(audioContent.price.loe(0))
} else {
where.and(audioContent.price.gt(0))
} }
return queryFactory return queryFactory