Skip to content

Commit

Permalink
## v0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
adrai committed Oct 24, 2013
1 parent 4be4c8b commit 3fd1317
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -78,6 +78,10 @@ See [tests](https://github.com/adrai/node-cqrs-domain/tree/master/test) for deta

# Release Notes

## v0.5.2

- fix commandDispatcher if no commandqueue is used

## v0.5.0

- a complete change of validation rules (see new [rule-validator](https://github.com/adrai/rule-validator))
Expand Down
6 changes: 5 additions & 1 deletion lib/commandDispatcher.js
Expand Up @@ -72,7 +72,11 @@ module.exports = {
// use provided aggregateId or get one from commandQueue
function(callback) {
if (!commandQueue) {
return callback(null, uuid().toString());
if (cmd.payload && cmd.payload.id) {
return callback(null, cmd.payload.id);
} else {
return callback(null, uuid().toString());
}
}

if (options.forcedQueuing) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"author": "adrai",
"name": "cqrs-domain",
"version": "0.5.1",
"version": "0.5.2",
"private": false,
"main": "index.js",
"engines": {
Expand Down

0 comments on commit 3fd1317

Please sign in to comment.