From 77a9f1a13c4e5eb706554cf25c900ea9d7527738 Mon Sep 17 00:00:00 2001 From: Klaus Date: Wed, 10 Jul 2024 14:21:28 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20-=20where=EC=A0=88?= =?UTF-8?q?=EC=9D=98=20=EC=88=9C=EC=84=9C=EB=A5=BC=20=EB=B3=80=EA=B2=BD?= =?UTF-8?q?=ED=95=98=EC=97=AC=20=ED=98=B9=EC=8B=9C=20=EC=83=9D=EA=B8=B8=20?= =?UTF-8?q?=EC=88=98=20=EC=9E=88=EB=8A=94=20=EB=B6=88=EC=83=81=EC=82=AC=20?= =?UTF-8?q?=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profile/creatorCommunity/CreatorCommunityRepository.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityRepository.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityRepository.kt index 2ae3834..49e22a7 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityRepository.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/CreatorCommunityRepository.kt @@ -49,12 +49,13 @@ class CreatorCommunityQueryRepositoryImpl(private val queryFactory: JPAQueryFact isAdult: Boolean ): List { var where = creatorCommunity.isActive.isTrue - .or(useCan.communityPost.isNotNull) if (!isAdult) { where = where.and(creatorCommunity.isAdult.isFalse) } + where = where.or(useCan.communityPost.isNotNull) + return queryFactory .select( QSelectCommunityPostResponse(