@@ -79,24 +79,24 @@ export const getWorkflows = (envID: string, appIds: string): Promise<WorkflowsRe
79
79
for ( const _ciConfig of ciConfig . result ) {
80
80
_ciConfigMap . set ( _ciConfig . appId , _ciConfig )
81
81
}
82
- if ( workflow ?. result ?. workflows ) {
83
- for ( const workflowResult of workflow . result . workflows ) {
84
- const processWorkflowData = processWorkflow (
85
- {
86
- ...workflowResult ,
87
- workflows : [ workflowResult ] ,
88
- } as WorkflowResult ,
89
- _ciConfigMap . get ( workflowResult . appId ) ,
90
- cdConfig . result as CdPipelineResult ,
91
- externalCIConfig . result ,
92
- WorkflowTrigger ,
93
- WorkflowTrigger . workflow ,
94
- filterChildAndSiblingCD ( envID ) ,
95
- )
96
- _workflows . push ( ...processWorkflowData . workflows )
97
- _filteredCIPipelines . set ( workflowResult . appId , processWorkflowData . filteredCIPipelines )
82
+ if ( workflow ?. result ?. workflows ) {
83
+ for ( const workflowResult of workflow . result . workflows ) {
84
+ const processWorkflowData = processWorkflow (
85
+ {
86
+ ...workflowResult ,
87
+ workflows : [ workflowResult ] ,
88
+ } as WorkflowResult ,
89
+ _ciConfigMap . get ( workflowResult . appId ) ,
90
+ cdConfig . result as CdPipelineResult ,
91
+ externalCIConfig . result ,
92
+ WorkflowTrigger ,
93
+ WorkflowTrigger . workflow ,
94
+ filterChildAndSiblingCD ( envID ) ,
95
+ )
96
+ _workflows . push ( ...processWorkflowData . workflows )
97
+ _filteredCIPipelines . set ( workflowResult . appId , processWorkflowData . filteredCIPipelines )
98
+ }
98
99
}
99
- }
100
100
return { workflows : _workflows , filteredCIPipelines : _filteredCIPipelines }
101
101
} )
102
102
}
0 commit comments