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,