From ce7bb81e64def42c897681790afde622bfbe66f2 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Fri, 26 Dec 2025 01:00:32 -0800 Subject: [PATCH] Fix rating creation: inject user_id in model_dump --- backend/routers/social.py | 6 ++++-- docs/ROADMAP.md | 7 ++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/backend/routers/social.py b/backend/routers/social.py index 9dcf1db..a46a56e 100644 --- a/backend/routers/social.py +++ b/backend/routers/social.py @@ -110,8 +110,10 @@ def create_rating( session.refresh(existing_rating) return existing_rating - db_rating = Rating.model_validate(rating) - db_rating.user_id = current_user.id + # Create new rating with user_id injected + rating_data = rating.model_dump() + rating_data["user_id"] = current_user.id + db_rating = Rating.model_validate(rating_data) session.add(db_rating) # Award XP for new rating diff --git a/docs/ROADMAP.md b/docs/ROADMAP.md index c9b8b29..04ceb6d 100644 --- a/docs/ROADMAP.md +++ b/docs/ROADMAP.md @@ -156,9 +156,10 @@ ### Immediate (Testing) -1. [ ] Register test account to trigger verification email -2. [ ] Test password reset flow -3. [ ] Monitor email deliverability in Postal dashboard +1. [x] Register test account to trigger verification email +2. [x] Registration UX shows "Check Your Email" message +3. [ ] Test password reset flow +4. [ ] Monitor email deliverability in Postal dashboard ### This Week