From dad31fffcbb0a023f2bdddfb02a94c0524bcaa8f Mon Sep 17 00:00:00 2001 From: Klaus Date: Thu, 2 Nov 2023 17:18:34 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=ED=9B=84?= =?UTF-8?q?=EC=9B=90=20=EB=9E=AD=ED=82=B9=20query=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 ee349c7..3b9eb84 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/AudioContentRepository.kt @@ -484,8 +484,8 @@ class AudioContentQueryRepositoryImpl(private val queryFactory: JPAQueryFactory) .innerJoin(audioContent.theme, audioContentTheme) .where( where - .and(audioContentComment.createdAt.goe(startDate)) - .and(audioContentComment.createdAt.lt(endDate)) + .and(useCan.createdAt.goe(startDate)) + .and(useCan.createdAt.lt(endDate)) ) .groupBy(audioContent.id) .orderBy(useCan.can.add(useCan.rewardCan).sum().desc(), audioContent.createdAt.asc())