File tree Expand file tree Collapse file tree 1 file changed +12
-10
lines changed
src/core_plugins/kibana/server/routes/api/ingest Expand file tree Collapse file tree 1 file changed +12
-10
lines changed Original file line number Diff line number Diff line change @@ -15,17 +15,19 @@ export function registerFieldCapabilities(server) {
15
15
index : indices ,
16
16
allowNoIndices : false
17
17
} )
18
- . catch ( ( error ) => {
19
- reply ( handleESError ( error ) ) ;
20
- } )
21
- . then ( ( res ) => {
22
- const fields = _ . get ( res , 'indices._all.fields' , { } ) ;
23
- const fieldsFilteredValues = _ . mapValues ( fields , ( value ) => {
24
- return _ . pick ( value , [ 'searchable' , 'aggregatable' ] ) ;
25
- } ) ;
18
+ . then (
19
+ ( res ) => {
20
+ const fields = _ . get ( res , 'indices._all.fields' , { } ) ;
21
+ const fieldsFilteredValues = _ . mapValues ( fields , ( value ) => {
22
+ return _ . pick ( value , [ 'searchable' , 'aggregatable' ] ) ;
23
+ } ) ;
26
24
27
- reply ( { fields : fieldsFilteredValues } ) ;
28
- } ) ;
25
+ reply ( { fields : fieldsFilteredValues } ) ;
26
+ } ,
27
+ ( error ) => {
28
+ reply ( handleESError ( error ) ) ;
29
+ }
30
+ ) ;
29
31
}
30
32
} ) ;
31
33
}
You can’t perform that action at this time.
0 commit comments