fix: 修复删除组织时组织根节点未被删除的问题

pull/10468/head
Bai 2023-05-16 16:30:41 +08:00 committed by Jiangjie.Bai
parent 9cc9600a4c
commit 449e7ce454
1 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@ def on_org_create_or_update(sender, instance, **kwargs):
@receiver(pre_delete, sender=Organization)
def on_org_delete(sender, instance, **kwargs):
def delete_org_root_node_on_org_delete(sender, instance, **kwargs):
expire_orgs_mapping_for_memory(instance.id)
# 删除该组织下所有 节点
@ -89,7 +89,7 @@ def on_org_delete(sender, instance, **kwargs):
@receiver(post_delete, sender=Organization)
def on_org_delete(sender, instance, **kwargs):
def expire_user_orgs_on_org_delete(sender, instance, **kwargs):
expire_user_orgs()