perf: 优化操作日志,activity日志都存入操作日志中

This commit is contained in:
jiangweidong
2023-01-17 12:43:07 +08:00
committed by Jiangjie.Bai
parent 6dc4519c78
commit ab5b85d9b5
8 changed files with 148 additions and 72 deletions

View File

@@ -106,7 +106,7 @@ class OperateLogViewSet(RetrieveModelMixin, ListModelMixin, OrgGenericViewSet):
return super().get_serializer_class()
def get_queryset(self):
qs = OperateLog.objects.filter(is_activity=False)
qs = OperateLog.objects.all()
es_config = settings.OPERATE_LOG_ELASTICSEARCH_CONFIG
if es_config:
engine_mod = import_module(TYPE_ENGINE_MAPPING['es'])