Skip to content

Commit

Permalink
Fix typo in missing argument handling #4 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
yakhinvadim committed Sep 19, 2019
1 parent ddb847e commit 8100233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/documents.js
Expand Up @@ -25,7 +25,7 @@ Documents.prototype = {
},

batchCreate: function(params, documents, batchSize, doneCallback){
if (!batchSize) {
if (!doneCallback) {
doneCallback = batchSize
batchSize = 10
}
Expand Down

0 comments on commit 8100233

Please sign in to comment.