parent
bf01bb66e5
commit
77a9f1a13c
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue