콘텐츠 홈 단편 탭
- 유료 콘텐츠만 나오도록 수정
This commit is contained in:
@@ -410,8 +410,10 @@ class AudioContentQueryRepositoryImpl(
|
||||
where = where.and(audioContentTheme.theme.`in`(theme))
|
||||
}
|
||||
|
||||
if (isFree) {
|
||||
where = where.and(audioContent.price.loe(0))
|
||||
where = if (isFree) {
|
||||
where.and(audioContent.price.loe(0))
|
||||
} else {
|
||||
where.and(audioContent.price.gt(0))
|
||||
}
|
||||
|
||||
return queryFactory
|
||||
|
@@ -35,8 +35,10 @@ class AudioContentThemeQueryRepository(
|
||||
where = where.and(audioContent.isAdult.isFalse)
|
||||
}
|
||||
|
||||
if (isFree) {
|
||||
where = where.and(audioContent.price.loe(0))
|
||||
where = if (isFree) {
|
||||
where.and(audioContent.price.loe(0))
|
||||
} else {
|
||||
where.and(audioContent.price.gt(0))
|
||||
}
|
||||
|
||||
return queryFactory
|
||||
|
Reference in New Issue
Block a user