Skip to content

Commit

Permalink
add param support to getMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ferronrsmith committed Jun 1, 2023
1 parent 72a863a commit 9c92ac7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/transports/__es__/_mapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ class Mapping {
if (this.gotMapping === true) {
callback(null, [])
} else {
const additionalParams = this.paramsToString(this.parent.options.params)
const esRequest = {
url: `${this.base.url}/_mapping`,
url: `${this.base.url}/_mapping${additionalParams}`,
method: 'GET'
}
aws4signer(esRequest, this.parent).then(() => {
Expand Down

0 comments on commit 9c92ac7

Please sign in to comment.