Mapped column (#22644)

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Asuka Minato 2025-07-23 01:39:59 +09:00 • committed by GitHub
commit 6d3e198c3c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 745 additions and 716 deletions

View file

@ -998,7 +998,7 @@ class TenantService:
.filter(TenantAccountJoin.tenant_id == tenant.id, TenantAccountJoin.account_id == account.id)
.first()
)
return join.role if join else None
return TenantAccountRole(join.role) if join else None
@staticmethod
def get_tenant_count() -> int: