File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/com/somemore/community/repository/board Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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) {
You can’t perform that action at this time.
0 commit comments