File tree 2 files changed +5
-5
lines changed
2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,10 +43,10 @@ export class FlowFrameworkDashboardsPlugin
43
43
this . logger . debug ( 'flow-framework-dashboards: Setup' ) ;
44
44
const router = core . http . createRouter ( ) ;
45
45
46
- // Get any custom/overridden headers
46
+ // Get global config
47
47
const globalConfig = await this . globalConfig$ . pipe ( first ( ) ) . toPromise ( ) ;
48
48
49
- // Create OpenSearch client w/ relevant plugins and headers
49
+ // Create OpenSearch client, including flow framework plugin APIs
50
50
const client : ILegacyClusterClient = core . opensearch . legacy . createClient (
51
51
'flow_framework' ,
52
52
{
Original file line number Diff line number Diff line change @@ -123,12 +123,12 @@ export class FlowFrameworkRoutesService {
123
123
. asScoped ( req )
124
124
. callAsCurrentUser ( 'flowFramework.searchWorkflows' , { body } ) ;
125
125
const workflowHits = response . hits . hits as any [ ] ;
126
- const workflowsMap = { } as WorkflowDict ;
126
+ const workflowDict = { } as WorkflowDict ;
127
127
workflowHits . forEach ( ( workflowHit : any ) => {
128
- workflowsMap [ workflowHit . _id ] = toWorkflowObj ( workflowHit ) ;
128
+ workflowDict [ workflowHit . _id ] = toWorkflowObj ( workflowHit ) ;
129
129
} ) ;
130
130
131
- return res . ok ( { body : { workflows : workflowsMap } } ) ;
131
+ return res . ok ( { body : { workflows : workflowDict } } ) ;
132
132
} catch ( err : any ) {
133
133
return generateCustomError ( res , err ) ;
134
134
}
You can’t perform that action at this time.
0 commit comments