From ffdcd618949054180adc6fc5e0a1d5cac06da9f0 Mon Sep 17 00:00:00 2001 From: Klaus Date: Wed, 27 Sep 2023 15:42:20 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=88=EB=A1=9C=EC=9A=B4=20=EC=BD=98?= =?UTF-8?q?=ED=85=90=EC=B8=A0=20-=20=EC=B5=9C=EA=B7=BC=202=EC=A3=BC=20?= =?UTF-8?q?=EB=8D=B0=EC=9D=B4=ED=84=B0=EB=A7=8C=20=EB=B6=88=EB=9F=AC?= =?UTF-8?q?=EC=98=A4=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../co/vividnext/sodalive/content/AudioContentRepository.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)