mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-21 12:39:48 +08:00
fix: issue where workflow statistics report may have null for last executed.
This commit is contained in:
@@ -465,13 +465,6 @@ func (s *WorkflowServer) GetWorkflowExecutionStatisticsForNamespace(ctx context.
|
||||
}
|
||||
|
||||
return &api.GetWorkflowExecutionStatisticsForNamespaceResponse{
|
||||
Stats: &api.WorkflowExecutionStatisticReport{
|
||||
Total: report.Total,
|
||||
LastExecuted: report.LastExecuted.Format(time.RFC3339),
|
||||
Running: report.Running,
|
||||
Completed: report.Completed,
|
||||
Failed: report.Failed,
|
||||
Terminated: report.Terminated,
|
||||
},
|
||||
Stats: converter.WorkflowExecutionStatisticsReportToAPI(report),
|
||||
}, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user