크리에이터 커뮤니티 #198

Merged
klaus merged 2 commits from test into main 2024-07-10 05:24:59 +00:00
1 changed files with 2 additions and 1 deletions
Showing only changes of commit 77a9f1a13c - Show all commits

View File

@ -49,12 +49,13 @@ class CreatorCommunityQueryRepositoryImpl(private val queryFactory: JPAQueryFact
isAdult: Boolean isAdult: Boolean
): List<SelectCommunityPostResponse> { ): List<SelectCommunityPostResponse> {
var where = creatorCommunity.isActive.isTrue var where = creatorCommunity.isActive.isTrue
.or(useCan.communityPost.isNotNull)
if (!isAdult) { if (!isAdult) {
where = where.and(creatorCommunity.isAdult.isFalse) where = where.and(creatorCommunity.isAdult.isFalse)
} }
where = where.or(useCan.communityPost.isNotNull)
return queryFactory return queryFactory
.select( .select(
QSelectCommunityPostResponse( QSelectCommunityPostResponse(