mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 13:46:51 +08:00
feat: Updated cron to return the active parameters
This commit is contained in:
@@ -39,6 +39,13 @@ func apiCronWorkflow(cwf *v1.CronWorkflow) (cronWorkflow *api.CronWorkflow) {
|
||||
|
||||
if cwf.WorkflowExecution != nil {
|
||||
cronWorkflow.WorkflowExecution = GenApiWorkflowExecution(cwf.WorkflowExecution)
|
||||
for _, param := range cwf.WorkflowExecution.Parameters {
|
||||
convertedParam := &api.WorkflowExecutionParameter{
|
||||
Name: param.Name,
|
||||
Value: *param.Value,
|
||||
}
|
||||
cronWorkflow.WorkflowExecution.Parameters = append(cronWorkflow.WorkflowExecution.Parameters, convertedParam)
|
||||
}
|
||||
}
|
||||
|
||||
return
|
||||
|
Reference in New Issue
Block a user