Skip to content

Commit

Permalink
cleanup data_enhanced
Browse files Browse the repository at this point in the history
  • Loading branch information
mshustov committed Jul 28, 2021
1 parent 2f1a173 commit b9f46a0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/data_enhanced/server/collectors/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import type { estypes } from '@elastic/elasticsearch';
import { Observable } from 'rxjs';
import { first } from 'rxjs/operators';
import { SearchResponse } from 'elasticsearch';
import { SharedGlobalConfig, Logger } from 'kibana/server';
import { CollectorFetchContext } from '../../../../../src/plugins/usage_collection/server';
import { SEARCH_SESSION_TYPE } from '../../../../../src/plugins/data/common';
Expand All @@ -22,7 +21,7 @@ export function fetchProvider(config$: Observable<SharedGlobalConfig>, logger: L
return async ({ esClient }: CollectorFetchContext): Promise<ReportedUsage> => {
try {
const config = await config$.pipe(first()).toPromise();
const { body: esResponse } = await esClient.search<SearchResponse<unknown>>({
const { body: esResponse } = await esClient.search<unknown>({
index: config.kibana.index,
body: {
size: 0,
Expand Down

0 comments on commit b9f46a0

Please sign in to comment.