pull/19445/head
hjlarry 1 year ago
parent bd31158e29
commit 038d53af5c

@ -113,7 +113,10 @@ class AccountService:
account.set_tenant_id(current_tenant.tenant_id) account.set_tenant_id(current_tenant.tenant_id)
else: else:
available_ta = ( available_ta = (
db.session.query(TenantAccountJoin).filter_by(account_id=account.id).order_by(TenantAccountJoin.id.asc()).first() db.session.query(TenantAccountJoin)
.filter_by(account_id=account.id)
.order_by(TenantAccountJoin.id.asc())
.first()
) )
if not available_ta: if not available_ta:
return None return None

Loading…
Cancel
Save