feat(admin): decrypt user email and phone before user event#860
feat(admin): decrypt user email and phone before user event#860nevil-mathew merged 2 commits intodevelopfrom
Conversation
WalkthroughModified AdminHelper.assignRole to decrypt user.email and user.phone before constructing the eventBody, ensuring the event payload uses decrypted values instead of encrypted ones. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ 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 |
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
src/services/admin.js(1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
src/services/**
⚙️ CodeRabbit configuration file
This is core business logic. Please check for correctness, efficiency, and potential edge cases.
Files:
src/services/admin.js
🧬 Code graph analysis (1)
src/services/admin.js (7)
src/services/org-admin.js (2)
user(371-374)emailEncryption(27-27)src/services/account.js (11)
user(136-145)user(703-703)user(848-848)user(898-898)user(1051-1051)user(1204-1213)user(1385-1393)user(1733-1733)user(1956-1959)user(2067-2067)emailEncryption(29-29)src/services/user.js (4)
user(48-51)user(319-319)user(440-440)emailEncryption(21-21)src/database/queries/users.js (1)
emailEncryption(6-6)src/helpers/userInvite.js (1)
emailEncryption(24-24)src/services/organization.js (1)
emailEncryption(17-17)src/services/userInvite.js (1)
emailEncryption(31-31)
Summary by CodeRabbit