Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
GareArc committed Dec 22, 2024
1 parent cda2078 commit a636327
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/services/billing_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion api/tasks/delete_account_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a636327

Please sign in to comment.