Skip to content

Commit

Permalink
fix issue if key is specified, use that url
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanramage committed Mar 30, 2017
1 parent ebd2f58 commit 218a256
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module.exports = function (config, log, since) {

var doc = change.doc
var es_doc_url = config.elasticsearch + '/' + change.id
if (config.key) es_doc_url = config.elasticsearch + '/' + doc[config.key]
if (config.urlTemplate) es_doc_url = run_compile(es_doc_url, doc, log)
if (doc._deleted) return handle_delete(config, es_doc_url, change, log, onDone, endTask)

Expand Down

0 comments on commit 218a256

Please sign in to comment.