viewmodel
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -211,4 +211,10 @@ 'use strict'; | ||
this.collection.update(query, obj, { safe: true, upsert: !currentHash }, function(err, modifiedCount) { | ||
if (modifiedCount === 0) { | ||
return callback(new ConcurrencyError()); | ||
if (isNew) { | ||
if (modifiedCount && modifiedCount.result && modifiedCount.result.n === 0) { | ||
return callback(new ConcurrencyError()); | ||
} | ||
} else { | ||
if (modifiedCount === 0) { | ||
return callback(new ConcurrencyError()); | ||
} | ||
} | ||
@@ -215,0 +221,0 @@ vm.actionOnCommit = 'update'; |
{ | ||
"author": "adrai", | ||
"name": "viewmodel", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
## [v1.3.2](https://github.com/adrai/node-viewmodel/compare/v1.3.1...v1.3.2) | ||
- added mongodb driver 2.x support | ||
## [v1.3.1](https://github.com/adrai/node-viewmodel/compare/v1.3.0...v1.3.1) | ||
@@ -2,0 +5,0 @@ - fix errors in azureTable implementation [#12](https://github.com/adrai/node-viewmodel/pull/12) thanks to [rvin100](https://github.com/rvin100) |
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
81340
2172