diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt index d059af1..6ed2e41 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt @@ -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 { 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)