Skip to content

Commit cbf30e1

Browse files
committed
Fix types
1 parent 3d0e61b commit cbf30e1

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

x-pack/legacy/plugins/watcher/plugin_definition.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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
},

x-pack/legacy/plugins/watcher/server/np_ready/lib/call_with_request_factory.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
import { ElasticsearchServiceSetup } from 'src/core/server';
88
import { once } from 'lodash';
99
import { elasticsearchJsPlugin } from './elasticsearch_js_plugin';
10-
import { ServerShim } from '../types';
1110

1211
const 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
};

0 commit comments

Comments
 (0)