Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
TekMonksGitHub committed Jan 12, 2019
1 parent d5caf6e commit 3b2b52c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outputs/aiinsights_push.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ function createDocuments(aiinsights_push, routeName, cb) {
let poster = aiinsights_push.host_secure ? http.postHttps : http.post;
poster(aiinsights_push.host, aiinsights_push.port, `/_bulk`,
{"Content-Type":"application/x-ndjson"}, postRequest, undefined,
(err, result) => cb(msgStack, routeName, err, result.response, result.status));
(err, result) => cb(msgStack, routeName, err, result?result.response:null, result?result.status:null));
}

function getBulkCreateRequest(messages, index, doctype) {
Expand Down

0 comments on commit 3b2b52c

Please sign in to comment.