perf: changr secret record api

pull/9044/head
feng 2022-11-09 18:31:35 +08:00
parent a5cef74356
commit becb10a453
1 changed files with 1 additions and 1 deletions

View File

@ -36,5 +36,5 @@ class ChangeSecretRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
execution = get_object_or_none(AutomationExecution, pk=eid)
if execution:
queryset = queryset.filter(execution=execution)
queryset = queryset.order_by('is_success', '-date_start')
queryset = queryset.order_by('-date_start')
return queryset