크리에이터 커뮤니티
- where절의 순서를 변경하여 혹시 생길 수 있는 불상사 방지
This commit is contained in:
@@ -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(
|
||||
|
Reference in New Issue
Block a user