Comparing version 1.2.3 to 1.2.4
@@ -191,2 +191,3 @@ 'use strict'; | ||
sagaModel.set(data); | ||
sagaModel.actionOnCommit = 'update'; | ||
} | ||
@@ -193,0 +194,0 @@ callb(null, sagaModel); |
@@ -449,2 +449,3 @@ 'use strict'; | ||
sagaModel.set(s); | ||
sagaModel.actionOnCommit = 'update'; | ||
@@ -518,2 +519,3 @@ var calledAddCommandToSend = false; | ||
sagaModel.set(s); | ||
sagaModel.actionOnCommit = 'update'; | ||
sagaModel.commit = function (clb) { | ||
@@ -520,0 +522,0 @@ if (sagaModel.isDestroyed()) { |
@@ -23,6 +23,8 @@ 'use strict'; | ||
this.id = id; | ||
this.destroyed = false; | ||
this.commandsToSend = []; | ||
this.actionOnCommit = 'create'; | ||
} | ||
@@ -55,3 +57,3 @@ | ||
}, | ||
/** | ||
@@ -64,3 +66,3 @@ * Returns the commit date. | ||
}, | ||
/** | ||
@@ -160,2 +162,3 @@ * Defines a timeout date and optional timeout commands, and adds them to this model. | ||
this.destroyed = true; | ||
this.actionOnCommit = 'delete'; | ||
}, | ||
@@ -162,0 +165,0 @@ |
{ | ||
"author": "adrai", | ||
"name": "cqrs-saga", | ||
"version": "1.2.3", | ||
"version": "1.2.4", | ||
"private": false, | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -0,1 +1,4 @@ | ||
## [v1.2.4](https://github.com/adrai/node-cqrs-saga/compare/v1.2.3...v1.2.4) | ||
- added convenience information on sagaModel (actionOnCommit) | ||
## [v1.2.3](https://github.com/adrai/node-cqrs-saga/compare/v1.2.1...v1.2.3) | ||
@@ -2,0 +5,0 @@ - fix usage with own db implementation |
Sorry, the diff of this file is not supported yet
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
256880
3954