test #34
@@ -263,7 +263,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||
|
||||
override fun totalCountNewContentFor2Weeks(theme: String, isAdult: Boolean): Int {
|
||||
var where = audioContent.isActive.isTrue
|
||||
.and(audioContent.createdAt.loe(LocalDateTime.now()))
|
||||
.and(audioContent.createdAt.goe(LocalDateTime.now().minusWeeks(2)))
|
||||
|
||||
if (!isAdult) {
|
||||
where = where.and(audioContent.isAdult.isFalse)
|
||||
@@ -291,7 +291,7 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory)
|
||||
limit: Long
|
||||
): List<GetAudioContentMainItem> {
|
||||
var where = audioContent.isActive.isTrue
|
||||
.and(audioContent.createdAt.loe(LocalDateTime.now()))
|
||||
.and(audioContent.createdAt.goe(LocalDateTime.now().minusWeeks(2)))
|
||||
|
||||
if (!isAdult) {
|
||||
where = where.and(audioContent.isAdult.isFalse)
|
||||
|
||||
Reference in New Issue
Block a user