Skip to content

Commit

Permalink
<fix>(GetMultiple): Fix when exists error
Browse files Browse the repository at this point in the history
  • Loading branch information
joelbraga committed Oct 12, 2015
1 parent 426ff52 commit 760905b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/couchbasedb.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ function getMulti(bucketName, keys, resultCallback) {
bucket.getMulti(keys, callback);
}
], function(err, results) {
resultCallback(err, internals.couchMultiResultToJSON(results));
if(err && err >0){
return resultCallback(results);
}
return resultCallback(null, internals.couchMultiResultToJSON(results));
});
}

Expand Down

0 comments on commit 760905b

Please sign in to comment.