Skip to content

Commit

Permalink
fix bracket matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ferronrsmith committed Mar 30, 2022
1 parent 4d75c92 commit 81b5698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/transports/__es__/_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ class Data {
}

del (elem, callback) {
const thisUrl = `${this.base.host}/${encodeURIComponent(elem._index)}/${encodeURIComponent(elem._type) || '_doc'}/${encodeURIComponent(elem._id)}`
const thisUrl = `${this.base.host}/${encodeURIComponent(elem._index)}/${encodeURIComponent(elem._type || '_doc')}/${encodeURIComponent(elem._id)}`

this.parent.emit('debug', `deleteUrl: ${thisUrl}`)
const esRequest = {
Expand Down

0 comments on commit 81b5698

Please sign in to comment.