Переглянути джерело

refactor: remove unused dissolve_tenant static method (#22690)

tags/1.7.0
Xin Zhang 3 місяці тому
джерело
коміт
bddeebd4c9
Аккаунт користувача з таким Email не знайдено
1 змінених файлів з 0 додано та 9 видалено
  1. 0
    9
      api/services/account_service.py

+ 0
- 9
api/services/account_service.py Переглянути файл

@@ -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)

Завантаження…
Відмінити
Зберегти