Skip to content

Commit 739b914

Browse files
committed
chore(community): where 조건 순서 변경 및 개행 수정
1 parent 941059f commit 739b914

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/somemore/community/repository/board/CommunityBoardRepositoryImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ public Optional<CommunityBoard> findById(Long id) {
4747
@Override
4848
public Page<CommunityBoardView> findCommunityBoards(String keyword, Pageable pageable) {
4949
List<CommunityBoardView> content = getCommunityBoardsQuery()
50-
.where(isNotDeleted()
51-
.and(keywordEq(keyword)))
50+
.where(keywordEq(keyword)
51+
.and(isNotDeleted()))
5252
.offset(pageable.getOffset())
5353
.limit(pageable.getPageSize())
5454
.fetch();
@@ -165,8 +165,8 @@ private BooleanExpression isNotDeleted() {
165165

166166
private BooleanExpression keywordEq(String keyword) {
167167
return StringUtils.isNotBlank(keyword)
168-
? communityBoard.title.containsIgnoreCase(
169-
keyword) : null;
168+
? communityBoard.title.containsIgnoreCase(keyword)
169+
: null;
170170
}
171171

172172
// private List<CommunityBoardDocument> getBoardDocuments(String keyword) {

0 commit comments

Comments
 (0)