Skip to content

Commit

Permalink
Rename async search params (#61641)
Browse files Browse the repository at this point in the history
Co-authored-by: Elastic Machine <elasticmachine@users.noreply.github.com>
  • Loading branch information
lukasolson and elasticmachine committed Mar 31, 2020
1 parent 760ef4c commit c9767ea
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 c9767ea

Please sign in to comment.