Deduplicate post view notifications

This commit is contained in:
Tim
2025-08-01 11:47:43 +08:00
parent ba2299e882
commit 2fc22e7580
3 changed files with 30 additions and 0 deletions

View File

@@ -18,4 +18,6 @@ public interface NotificationRepository extends JpaRepository<Notification, Long
List<Notification> findByComment(Comment comment);
void deleteByTypeAndFromUser(NotificationType type, User fromUser);
void deleteByUserAndTypeAndPostAndFromUser(User user, NotificationType type, Post post, User fromUser);
}