Skip to content

Commit

Permalink
Rename async search params (#61641) (#61916)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>

Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
lukasolson and elasticmachine authored Mar 31, 2020
1 parent 9b9ac83 commit a71c942
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ async function asyncSearch(
const path = encodeURI(request.id ? `_async_search/${request.id}` : `${index}/_async_search`);

// Wait up to 1s for the response to return
const query = toSnakeCase({ /* waitForCompletion: '1s', */ ...params });
const query = toSnakeCase({ waitForCompletionTimeout: '1s', ...params });

const { response: rawResponse, id } = (await caller(
'transport.request',
Expand Down

0 comments on commit a71c942

Please sign in to comment.