Skip to content

Commit

Permalink
Fix: QueryDSL에서도 subTitle 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
chaejm55 committed Oct 16, 2024
1 parent 4d66a25 commit 046a896
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ public Page<Post> searchByKeyword(Pageable pageable, String keyword) {
.selectFrom(QPost.post)
.where(QPost.post.status.eq(PostStatus.SAVED)
.and(QPost.post.title.contains(keyword)
.or(QPost.post.subTitle.contains(keyword))
.or(QPost.post.content.contains(keyword))))
.offset(pageable.getOffset())
.limit(pageable.getPageSize())
Expand All @@ -66,7 +65,6 @@ public Page<Post> searchByKeyword(Pageable pageable, String keyword) {
.from(QPost.post)
.where(QPost.post.status.eq(PostStatus.SAVED)
.and(QPost.post.title.contains(keyword)
.or(QPost.post.subTitle.contains(keyword))
.or(QPost.post.content.contains(keyword))))
.fetchFirst();

Expand Down

0 comments on commit 046a896

Please sign in to comment.