File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
x-pack/legacy/plugins/watcher Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ export const pluginDefinition = {
2323 __LEGACY : {
2424 route : server . route . bind ( server ) ,
2525 plugins : {
26- elasticsearch : server . plugins . elasticsearch ,
2726 watcher : server . plugins [ PLUGIN . ID ] ,
2827 xpack_main : server . plugins . xpack_main ,
2928 } ,
Original file line number Diff line number Diff line change 77import { ElasticsearchServiceSetup } from 'src/core/server' ;
88import { once } from 'lodash' ;
99import { elasticsearchJsPlugin } from './elasticsearch_js_plugin' ;
10- import { ServerShim } from '../types' ;
1110
1211const callWithRequest = once ( ( elasticsearchService : ElasticsearchServiceSetup ) => {
1312 const config = { plugins : [ elasticsearchJsPlugin ] } ;
@@ -19,8 +18,11 @@ export const callWithRequestFactory = (
1918 request : any
2019) => {
2120 return ( ...args : any [ ] ) => {
22- return callWithRequest ( elasticsearchService )
23- . asScoped ( request )
24- . callAsCurrentUser ( ...args ) ;
21+ return (
22+ callWithRequest ( elasticsearchService )
23+ . asScoped ( request )
24+ // @ts -ignore
25+ . callAsCurrentUser ( ...args )
26+ ) ;
2527 } ;
2628} ;
You can’t perform that action at this time.
0 commit comments