fix: Error in using set method

pull/15205/head
jiangweidong 2025-04-15 11:38:32 +08:00 committed by Bryan
parent 11ef4fab4e
commit 64393fe695
1 changed files with 1 additions and 1 deletions

View File

@ -266,7 +266,7 @@ class OperateLogViewSet(OrgReadonlyModelViewSet):
if current_org_id == Organization.DEFAULT_ID: if current_org_id == Organization.DEFAULT_ID:
filtered_org_ids.update(Organization.INTERNAL_IDS) filtered_org_ids.update(Organization.INTERNAL_IDS)
if self.is_action_detail: if self.is_action_detail:
filtered_org_ids.update(Organization.SYSTEM_ID) filtered_org_ids.add(Organization.SYSTEM_ID)
qs = OperateLog.objects.filter(org_id__in=filtered_org_ids) qs = OperateLog.objects.filter(org_id__in=filtered_org_ids)
es_config = settings.OPERATE_LOG_ELASTICSEARCH_CONFIG es_config = settings.OPERATE_LOG_ELASTICSEARCH_CONFIG