fix(worker): remove subscriber-cache header #9880
Conversation
✅ Deploy Preview for dashboard-v2-novu-staging canceled.
|
|
Hey there and thank you for opening this pull request! 👋 We require pull request titles to follow specific formatting rules and it looks like your proposed title needs to be adjusted. Your PR title is: Requirements:
Expected format: Details: PR title must end with 'fixes TICKET-ID' (e.g., 'fixes NOV-123') or include ticket ID in branch name |
WalkthroughThe change modifies the getSubscriberBySubscriberId method in the send-message use case. The CachedResponse decorator has been removed, and the method now calls subscriberRepository.findOne with an additional readPreference option set to 'secondaryPreferred'. The call signature has been adjusted with an additional parameter position. The data retrieval approach changes from utilizing caching to implementing direct database reads with secondary preference for read operations. 🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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 |
What changed? Why was the change needed?
Screenshots
Expand for optional sections
Related enterprise PR
Special notes for your reviewer