cqrs-eventdenormalizer
Advanced tools
Comparing version 1.3.9 to 1.3.10
@@ -249,2 +249,3 @@ 'use strict'; | ||
if (this.isReplaying) { | ||
vm.actionOnCommitForReplay = vm.actionOnCommit; | ||
this.replayingVms[vm.id] = vm; | ||
@@ -255,2 +256,5 @@ if (vm.actionOnCommit === 'delete') { | ||
} | ||
if (vm.actionOnCommit === 'create') { | ||
vm.actionOnCommit = 'update'; | ||
} | ||
return callback(null); | ||
@@ -398,14 +402,7 @@ } | ||
async.series([ | ||
function (callback) { | ||
async.each(replVmsToDelete, function (vm, callback) { | ||
self.repository.commit(vm, callback); | ||
}, callback); | ||
}, | ||
function (callback) { | ||
async.each(replVms, function (vm, callback) { | ||
self.repository.commit(vm, callback); | ||
}, callback); | ||
} | ||
], function (err) { | ||
async.each(replVmsToDelete.concat(replVms), function (vm, callback) { | ||
vm.actionOnCommit = vm.actionOnCommitForReplay; | ||
delete vm.actionOnCommitForReplay; | ||
self.repository.commit(vm, callback); | ||
}, function (err) { | ||
if (err) { | ||
@@ -412,0 +409,0 @@ debug(err); |
{ | ||
"author": "adrai", | ||
"name": "cqrs-eventdenormalizer", | ||
"version": "1.3.9", | ||
"version": "1.3.10", | ||
"private": false, | ||
@@ -15,8 +15,8 @@ "main": "index.js", | ||
"async": "0.9.0", | ||
"debug": "2.1.0", | ||
"debug": "2.1.3", | ||
"dotty": "0.0.2", | ||
"jsondate": "0.0.1", | ||
"lodash": "2.4.1", | ||
"node-uuid": "1.4.1", | ||
"sift": "0.1.0", | ||
"lodash": "3.6.0", | ||
"node-uuid": "1.4.3", | ||
"sift": "1.1.0", | ||
"tolerance": "1.0.0", | ||
@@ -23,0 +23,0 @@ "viewmodel": "1.3.2" |
@@ -0,1 +1,4 @@ | ||
## [v1.3.10](https://github.com/adrai/node-cqrs-eventdenormalizer/compare/v1.3.9...v1.3.10) | ||
- correct actionOnCommit handling during replay | ||
## [v1.3.9](https://github.com/adrai/node-cqrs-eventdenormalizer/compare/v1.3.8...v1.3.9) | ||
@@ -2,0 +5,0 @@ - update viewmodel dependency |
Sorry, the diff of this file is not supported yet
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
189241
3370
+ Addeddebug@2.1.3(transitive)
+ Addedlodash@3.6.0(transitive)
+ Addedms@0.7.0(transitive)
+ Addednode-uuid@1.4.3(transitive)
+ Addedsift@1.1.0(transitive)
- Removeddebug@2.1.0(transitive)
- Removedms@0.6.2(transitive)
- Removedsift@0.1.0(transitive)
Updateddebug@2.1.3
Updatedlodash@3.6.0
Updatednode-uuid@1.4.3
Updatedsift@1.1.0