From f6297109cf6c34b2723c4396142dd1ab45230746 Mon Sep 17 00:00:00 2001 From: Joe <1264204425@qq.com> Date: Mon, 30 Sep 2024 10:37:53 +0800 Subject: [PATCH] chore: lint --- api/services/account_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/services/account_service.py b/api/services/account_service.py index 7316b18cce4..3b49cf12160 100644 --- a/api/services/account_service.py +++ b/api/services/account_service.py @@ -421,7 +421,7 @@ class TenantService: if TenantService.has_roles(tenant, [TenantAccountJoinRole.OWNER]): logging.error(f"Tenant {tenant.id} has already an owner.") raise Exception("Tenant already has an owner.") - + ta = db.session.query(TenantAccountJoin).filter_by(tenant_id=tenant.id, account_id=account.id).first() if ta: ta.role = role