From f503492bf9537decc8a8cb3485f113440cd2e0d3 Mon Sep 17 00:00:00 2001 From: Klaus Date: Wed, 4 Dec 2024 00:40:26 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0=20=EB=8C=93?= =?UTF-8?q?=EA=B8=80=20=ED=91=B8=EC=8B=9C=20=EB=8C=80=EC=83=81=EC=9E=90=20?= =?UTF-8?q?-=20=EB=8C=93=EA=B8=80=20:=20=EC=BD=98=ED=85=90=EC=B8=A0=20?= =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0=EC=97=90=EA=B2=8C?= =?UTF-8?q?=EB=A7=8C=20-=20=EB=8B=B5=EA=B8=80=20:=20=EC=9B=90=20=EB=8C=93?= =?UTF-8?q?=EA=B8=80=20=EC=93=B4=20=EC=82=AC=EB=9E=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../content/comment/AudioContentCommentRepository.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/content/comment/AudioContentCommentRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/content/comment/AudioContentCommentRepository.kt index ac1dd5e..e581dd1 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/content/comment/AudioContentCommentRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/content/comment/AudioContentCommentRepository.kt @@ -191,13 +191,13 @@ class AudioContentCommentQueryRepositoryImpl( ): List { var where = audioContent.id.eq(contentId) .and(member.id.ne(myMemberId)) - .and(audioContentComment.isActive.isTrue) if (commentParentId != null) { where = where.and( audioContentComment.parent.id.eq(commentParentId) .or(audioContentComment.id.eq(commentParentId)) ) + .and(audioContentComment.isActive.isTrue) } val response = if (commentParentId != null) { @@ -221,9 +221,8 @@ class AudioContentCommentQueryRepositoryImpl( member.container ) ) - .from(audioContentComment) - .innerJoin(audioContentComment.audioContent, audioContent) - .innerJoin(audioContentComment.member, member) + .from(audioContent) + .innerJoin(audioContent.member, member) .where(where) .fetch() } -- 2.40.1