Skip to content

Commit f126b01

Browse files
committed
CLAP-411 Fix : 사용자가 취소한 알림들 필터링하는 query 제거
1 parent 6ed4664 commit f126b01

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/main/java/clap/server/adapter/outbound/persistense/repository/notification/NotificationRepository.java

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,18 @@ public interface NotificationRepository extends JpaRepository<NotificationEntity
1717

1818
@Query("SELECT n FROM NotificationEntity n " +
1919
"WHERE n.receiver.memberId = :receiverId " +
20-
"AND n.task.isDeleted = false " +
2120
"ORDER BY n.createdAt DESC")
2221
Slice<NotificationEntity> findAllByReceiver_MemberIdOrderByCreatedAtDesc(
2322
@Param("receiverId") Long receiverId, Pageable pageable);
2423

2524
@Query("SELECT n FROM NotificationEntity n " +
26-
"WHERE n.receiver.memberId = :receiverId " +
27-
"AND n.task.isDeleted = false")
25+
"WHERE n.receiver.memberId = :receiverId")
2826
List<NotificationEntity> findAllByReceiver_MemberId(Long receiverId);
2927

3028
List<NotificationEntity> findByTask_TaskId(Long taskId);
3129

3230
@Query("SELECT COUNT(n) FROM NotificationEntity n " +
3331
"WHERE n.isRead = false " +
34-
"AND n.receiver.memberId = :memberId " +
35-
"AND n.task.isDeleted = false")
32+
"AND n.receiver.memberId = :memberId")
3633
Integer countUnreadByMemberId(@Param("memberId") Long memberId);
3734
}

0 commit comments

Comments
 (0)