From 1a774937b382cf35130dc21832bb44b886453530 Mon Sep 17 00:00:00 2001 From: Klaus <klaus@vividnext.co.kr> Date: Thu, 12 Jun 2025 12:00:21 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20?= =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EB=AC=BC=20=EC=A1=B0=ED=9A=8C=20-=20isAdult?= =?UTF-8?q?=EB=A5=BC=20=EB=AC=B4=EC=A1=B0=EA=B1=B4=20false=EB=A1=9C=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=EB=90=98=EB=8D=98=20=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=EB=A5=BC=20=EA=B2=8C=EC=8B=9C=EB=AC=BC=EC=9D=98=20isAdult?= =?UTF-8?q?=EC=97=90=20=EB=94=B0=EB=9D=BC=20=EB=8B=A4=EB=A5=B4=EA=B2=8C=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../creatorCommunity/CreatorCommunityRepository.kt | 9 ++++++--- .../creatorCommunity/SelectCommunityPostResponse.kt | 5 +++-- 2 files changed, 9 insertions(+), 5 deletions(-) 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 6f3ffcf..1b31eec 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 @@ -68,7 +68,8 @@ class CreatorCommunityQueryRepositoryImpl(private val queryFactory: JPAQueryFact creatorCommunity.content, creatorCommunity.createdAt, creatorCommunity.isCommentAvailable, - creatorCommunity.price + creatorCommunity.price, + creatorCommunity.isAdult ) ) .from(creatorCommunity) @@ -154,7 +155,8 @@ class CreatorCommunityQueryRepositoryImpl(private val queryFactory: JPAQueryFact creatorCommunity.content, creatorCommunity.createdAt, creatorCommunity.isCommentAvailable, - creatorCommunity.price + creatorCommunity.price, + creatorCommunity.isAdult ) ) .from(creatorCommunity) @@ -185,7 +187,8 @@ class CreatorCommunityQueryRepositoryImpl(private val queryFactory: JPAQueryFact creatorCommunity.content, creatorCommunity.createdAt, creatorCommunity.isCommentAvailable, - creatorCommunity.price + creatorCommunity.price, + creatorCommunity.isAdult ) ) .from(creatorCommunity) diff --git a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt index 8f69f6f..c290067 100644 --- a/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt +++ b/src/main/kotlin/kr/co/vividnext/sodalive/explorer/profile/creatorCommunity/SelectCommunityPostResponse.kt @@ -14,7 +14,8 @@ data class SelectCommunityPostResponse @QueryProjection constructor( val content: String, val date: LocalDateTime, val isCommentAvailable: Boolean, - val price: Int + val price: Int, + val isAdult: Boolean ) { fun toCommunityPostListResponse( imageHost: String, @@ -57,7 +58,7 @@ data class SelectCommunityPostResponse @QueryProjection constructor( price = price, date = date, isCommentAvailable = isCommentAvailable, - isAdult = false, + isAdult = isAdult, isLike = isLike, existOrdered = existOrdered, likeCount = likeCount,