fix: use include user:True instead of nested select for Prisma Python compat

Prisma Python client does not support nested select within include.
Use include user:True to fetch the full user object; model_validator
extracts user_email from it.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
yuneng-jiang 2026-02-20 21:40:23 -08:00
parent 4597d34344
commit ffc673da09

View file

@ -723,9 +723,7 @@ async def info_organization(organization_id: str):
"litellm_budget_table": True,
"members": {
"include": {
"user": {
"select": {"user_email": True},
}
"user": True,
}
},
"teams": True,