Fix 403 error in notification preferences and profile updates

- Handle both Clerk ID and database ID in authorization checks
- Compare Clerk IDs when URL parameter is a Clerk ID (user_xxx)
- Convert Clerk ID to database ID for service layer operations
- Apply fix to both updateNotificationPreferences and updateUserProfile endpoints
This commit is contained in:
2025-11-16 22:03:50 +00:00
parent 86169f6141
commit 06c2310266
2 changed files with 66 additions and 25 deletions

View File

@@ -125,7 +125,7 @@
- Add profile editing functionality
- _Requirements: 6.3, 6.4, 6.5_
- [-] 16. Implement notification preferences
- [x] 16. Implement notification preferences
- Create notification settings interface
- Build area of interest selector with map
- Implement radius configuration (1-50km)