mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-16 10:40:38 +08:00
Added createdAt field to be set when created in workflow_manager
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user