refactor: remove unused dissolve_tenant static method (#22690)

This commit is contained in:
Xin Zhang 2025-07-21 12:40:47 +08:00 committed by GitHub
parent d45e48eed7
commit bddeebd4c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 9 deletions

View File

@ -1067,15 +1067,6 @@ class TenantService:
target_member_join.role = new_role
db.session.commit()
@staticmethod
def dissolve_tenant(tenant: Tenant, operator: Account) -> None:
"""Dissolve tenant"""
TenantService.check_member_permission(tenant, operator, None, "remove")
db.session.query(TenantAccountJoin).filter_by(tenant_id=tenant.id).delete()
db.session.delete(tenant)
db.session.commit()
@staticmethod
def get_custom_config(tenant_id: str) -> dict:
tenant = db.get_or_404(Tenant, tenant_id)