From a63632787cb88beac0ce26113a26aa6c6360e466 Mon Sep 17 00:00:00 2001 From: GareArc Date: Sun, 22 Dec 2024 05:03:37 +0000 Subject: [PATCH] minor fix --- api/services/billing_service.py | 2 +- api/tasks/delete_account_task.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/services/billing_service.py b/api/services/billing_service.py index 8c836284a8bd19..ea7e23e0f5a347 100644 --- a/api/services/billing_service.py +++ b/api/services/billing_service.py @@ -59,7 +59,7 @@ def is_tenant_owner_or_admin(current_user): if not TenantAccountRole.is_privileged_role(join.role): raise ValueError("Only team owner or team admin can perform this action") - @staticmethod + @classmethod def delete_tenant_customer(cls, tenant_id: str): """ Delete related customer in billing service. Used when tenant is deleted.""" params = {"tenant_id": tenant_id} diff --git a/api/tasks/delete_account_task.py b/api/tasks/delete_account_task.py index b6599b7395ddc9..6f746177ed8546 100644 --- a/api/tasks/delete_account_task.py +++ b/api/tasks/delete_account_task.py @@ -48,7 +48,7 @@ def _process_account_deletion(account, reason): ).all() for ta in tenant_account_joins: - if ta.role == TenantAccountJoinRole.OWNER: + if ta.role == TenantAccountJoinRole.OWNER.value: _handle_owner_tenant_deletion(ta) else: _remove_account_from_tenant(ta, account.email)