feat: Notification 배치 저장 로직 추가#2265
Conversation
|
Warning Review limit reached
Your plan currently allows 1 review/hour. Refill in 19 minutes and 58 seconds. Your organization has run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After more review capacity refills, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
| notifications.forEach(notification -> fcmClient.sendMessage( | ||
| notification.getUser().getDeviceToken(), | ||
| notification.getTitle(), | ||
| notification.getMessage(), | ||
| notification.getImageUrl(), | ||
| notification.getMobileAppPath(), | ||
| notification.getSchemeUri(), | ||
| notification.getType().toLowerCase() | ||
| )); |
There was a problem hiding this comment.
runAfterCommit(() -> notifications.forEach(this::sendNotificationSafely))로 하면, DB 커밋 실패해도 전송되는 문제를 막을 수 있습니다
There was a problem hiding this comment.
해당 부분은 NotificationService 코드 리펙토링을 별도로 진행하면서 재적용할 예정입니당
… feat/2264-add-notification-save-batch # Conflicts: # src/main/java/in/koreatech/koin/domain/notification/service/NotificationService.java
🔍 개요
🚀 주요 변경 내용
NotificationJdbcRepository 클래스 추가
💬 참고 사항
✅ Checklist (완료 조건)