mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 05:36:50 +08:00
Renamed WorkflowStatistics to just Stats.
Changed value types so they come back as integers in JSON.
This commit is contained in:
@@ -1118,7 +1118,7 @@ func (c *Client) GetWorkflowExecutionStatisticsForTemplate(workflowTemplate *Wor
|
||||
}
|
||||
|
||||
//Calculate and set the values
|
||||
workflowTemplate.WorkflowExecutionStatisticReport.Total = uint64(len(workflowExecStats))
|
||||
workflowTemplate.WorkflowExecutionStatisticReport.Total = int32(len(workflowExecStats))
|
||||
createdAtTime, ok := (workflowExecStats[0].CreatedAt).(time.Time)
|
||||
if !ok {
|
||||
return errors.New("Unable to get time of created_at")
|
||||
|
Reference in New Issue
Block a user