nqm-common-import
Advanced tools
Comparing version 0.0.2 to 0.0.4
@@ -114,4 +114,4 @@ /** | ||
bulk.payload = data; | ||
log("sending createMany [%d]",data.length); | ||
request({ url: url, method: "post", headers: { authorization: "Bearer " + accessToken }, json: true, body: bulk }, function(err, response, content) { | ||
log("sending createMany [%d - %d bytes]",data.length, JSON.stringify(data).length); | ||
request({ url: url, timeout: 3600000, method: "post", headers: { authorization: "Bearer " + accessToken }, json: true, body: bulk }, function(err, response, content) { | ||
if (err || response.statusCode !== 200 || response.body.error) { | ||
@@ -142,4 +142,4 @@ err = err || new Error(response.body.error || "not found"); | ||
bulk.payload = data; | ||
log("sending upsertMany [%d]",data.length); | ||
request({ url: url, method: "post", headers: { authorization: "Bearer " + accessToken }, json: true, body: bulk }, function(err, response, content) { | ||
log("sending upsertMany [%d - %d bytes]",data.length, JSON.stringify(data).length); | ||
request({ url: url, timeout: 3600000, method: "post", headers: { authorization: "Bearer " + accessToken }, json: true, body: bulk }, function(err, response, content) { | ||
if (err || response.statusCode !== 200 || response.body.error) { | ||
@@ -146,0 +146,0 @@ err = err || new Error(response.body.error || "not found"); |
{ | ||
"name": "nqm-common-import", | ||
"version": "0.0.2", | ||
"version": "0.0.4", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
10391