mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-31 23:20:37 +00:00
perf: 优化登录时创建 activity 的问题
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user