From da61676fef430dff411e1f7aa915883d3eae67fc Mon Sep 17 00:00:00 2001 From: Kyle Pope Date: Tue, 3 Mar 2026 01:42:06 +0800 Subject: [PATCH] Fix missing date_of_birth in admin user detail API response UserDetailResponse was built from UserListItem (which excludes date_of_birth), so the field always returned null. Explicitly pass user.date_of_birth to the response constructor. Co-Authored-By: Claude Opus 4.6 --- backend/app/routers/admin.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/app/routers/admin.py b/backend/app/routers/admin.py index b355344..35e863c 100644 --- a/backend/app/routers/admin.py +++ b/backend/app/routers/admin.py @@ -180,6 +180,7 @@ async def get_user( **UserListItem.model_validate(user).model_dump(exclude={"active_sessions"}), active_sessions=active_sessions, preferred_name=preferred_name, + date_of_birth=user.date_of_birth, )