parent
bf01bb66e5
commit
77a9f1a13c
|
@ -49,12 +49,13 @@ class CreatorCommunityQueryRepositoryImpl(private val queryFactory: JPAQueryFact
|
|||
isAdult: Boolean
|
||||
): List<SelectCommunityPostResponse> {
|
||||
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(
|
||||
|
|
Loading…
Reference in New Issue