Skip to content

Commit

Permalink
Rename to queryOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Liza K committed Sep 7, 2020
1 parent 7e73b45 commit bf6a342
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ async function asyncSearch(
keepAlive: '1m', // Extend the TTL for this search request by one minute
};

const querystring = toSnakeCase({
const queryOptions = toSnakeCase({
...asyncOptions,
...(batchedReduceSize && { batchedReduceSize }),
...queryParams,
Expand All @@ -110,7 +110,7 @@ async function asyncSearch(
if (!request.id) {
esResponse = await client.asyncSearch.submit({
body,
...querystring,
...queryOptions,
});
} else {
esResponse = await client.asyncSearch.get({
Expand Down

0 comments on commit bf6a342

Please sign in to comment.