Skip to content

Commit

Permalink
fix: 알림 활성 유저에게만 알림 가도록 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
EunjiShin committed Mar 30, 2024
1 parent f1ba918 commit 5fd3b48
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@

import static org.pickly.service.domain.bookmark.entity.QBookmark.bookmark;
import static org.pickly.service.domain.category.entity.QCategory.category;
import static org.pickly.service.domain.member.entity.QMember.member;
import static org.pickly.service.domain.notification.entity.QNotification.notification;
import static org.pickly.service.domain.notification.entity.QNotificationStandard.notificationStandard;

@Slf4j
@Repository
Expand Down Expand Up @@ -121,6 +123,11 @@ public List<Bookmark> findAllUnreadBookmark() {

return queryFactory
.selectFrom(bookmark)
.leftJoin(member).on(bookmark.member.id.eq(member.id))
.leftJoin(notificationStandard).on(
member.id.eq(notificationStandard.member.id)
.and(notificationStandard.isActive.isTrue())
)
.where(
JPAExpressions
.select(notification.bookmarkId)
Expand Down

0 comments on commit 5fd3b48

Please sign in to comment.