Skip to content

Commit

Permalink
change how logs consume search API
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Jul 5, 2020
1 parent 6e2180d commit f6a0fa7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions x-pack/plugins/infra/public/utils/logs_overview_fetchers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,8 @@ async function fetchLogsOverview(
params: FetchDataParams,
dataPlugin: InfraClientStartDeps['data']
): Promise<StatsAndSeries> {
const esSearcher = dataPlugin.search.getSearchStrategy('es');
return new Promise((resolve, reject) => {
esSearcher
dataPlugin.search
.search({
params: {
index: logParams.index,
Expand Down

0 comments on commit f6a0fa7

Please sign in to comment.