Comparing version 0.25.6 to 0.26.0
@@ -694,3 +694,6 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
AggregateRepository.prototype.create = function(params) { | ||
AggregateRepository.prototype.create = function(params, id) { | ||
if (id == null) { | ||
id = null; | ||
} | ||
return Promise.resolve().then((function(_this) { | ||
@@ -703,3 +706,7 @@ return function() { | ||
} | ||
aggregate.setId(uuidGenerator.generateUuid()); | ||
if (id != null) { | ||
aggregate.setId(id); | ||
} else { | ||
aggregate.setId(uuidGenerator.generateUuid()); | ||
} | ||
_this._installSaveFunctionOnAggregateInstance(aggregate); | ||
@@ -706,0 +713,0 @@ return Promise.resolve(aggregate.instance.create(params)).then(function() { |
@@ -13,3 +13,3 @@ { | ||
], | ||
"version": "0.25.6", | ||
"version": "0.26.0", | ||
"repository": { | ||
@@ -16,0 +16,0 @@ "type": "git", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
830831
19515