Skip to content

Commit e411a15

Browse files
committed
feat: NotificationService에 사용자 모든 알림 삭제 기능 추가
1 parent e051eea commit e411a15

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/back/domain/notification/service/NotificationService.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,9 @@ public void sendNotification(User user, Post post, NotificationType type, String
115115
}
116116
}
117117
}
118+
119+
@Transactional
120+
public void deleteAll(Long userId) {
121+
notificationRepository.deleteByUser_Id(userId);
122+
}
118123
}

0 commit comments

Comments
 (0)