mongodb-core
Advanced tools
Comparing version 1.2.7 to 1.2.8
@@ -0,1 +1,5 @@ | ||
1.2.8 07-24-2015 | ||
----------------- | ||
- Minor fix to handle 2.4.x errors better by correctly return driver layer issues. | ||
1.2.7 07-16-2015 | ||
@@ -2,0 +6,0 @@ ----------------- |
@@ -450,2 +450,4 @@ "use strict"; | ||
var writeConcern = cloneWriteConcern(optionWriteConcern); | ||
// Driver level error | ||
var error; | ||
@@ -486,8 +488,10 @@ // Execute all the operations | ||
return function(err, result) { | ||
if(err) error = err; | ||
// Update the number of operations executed | ||
totalOps = totalOps - 1; | ||
// Save the getLastError document | ||
getLastErrors[_index] = result.documents[0]; | ||
if(!err) getLastErrors[_index] = result.documents[0]; | ||
// Check if we are done | ||
if(totalOps == 0) { | ||
if(error) return callback(error); | ||
callback(null, aggregateWriteOperationResults(opType, ops, getLastErrors, connection)); | ||
@@ -494,0 +498,0 @@ } |
{ | ||
"name": "mongodb-core", | ||
"version": "1.2.7", | ||
"version": "1.2.8", | ||
"description": "Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
423889
8568