Added createdAt field to be set when created in workflow_manager

This commit is contained in:
Andrey Melnikov
2020-01-30 10:17:41 -08:00
parent 6fa397cdbd
commit c5986a0132
2 changed files with 8 additions and 5 deletions

View File

@@ -29,11 +29,12 @@ func apiWorkflow(wf *model.Workflow) (workflow *api.Workflow) {
if wf.WorkflowTemplate != nil {
workflow.WorkflowTemplate = &api.WorkflowTemplate{
Uid: wf.WorkflowTemplate.UID,
Name: wf.WorkflowTemplate.Name,
Version: wf.WorkflowTemplate.Version,
Manifest: wf.WorkflowTemplate.Manifest,
IsLatest: wf.WorkflowTemplate.IsLatest,
Uid: wf.WorkflowTemplate.UID,
CreatedAt: wf.WorkflowTemplate.CreatedAt.UTC().Format(time.RFC3339),
Name: wf.WorkflowTemplate.Name,
Version: wf.WorkflowTemplate.Version,
Manifest: wf.WorkflowTemplate.Manifest,
IsLatest: wf.WorkflowTemplate.IsLatest,
}
}