perf: 优化登录时创建 activity 的问题

This commit is contained in:
ibuler
2023-10-18 17:09:14 +08:00
committed by 老广
parent 25d0c021e1
commit bdd885069f

View File

@@ -114,6 +114,8 @@ def on_session_or_login_log_created(sender, instance=None, created=False, **kwar
logger.error('Activity log handler not found: {}'.format(sender))
resource_ids, detail, act_type, org_id = func(instance)
if not resource_ids:
return
return create_activities(resource_ids, detail, instance.id, act_type, org_id)