Comparing version 0.3.2 to 0.3.3
@@ -27,3 +27,3 @@ var uuid = require('uuid').v4; | ||
}) | ||
}).nodeify(callback);; | ||
}).nodeify(callback); | ||
} else { | ||
@@ -62,3 +62,3 @@ return this._partition.openStream(id).then(function (stream) { | ||
LOG.info('%s committed %d events with %s id', self.aggregateType, events.length, commitId); | ||
if(self._partition.storeSnapshot !== undefined) { | ||
if(self._partition.storeSnapshot !== undefined && aggregate._getSnapshot) { | ||
LOG.debug('Persisting snapshot for stream %s version %s', aggregate.id, aggregate.getVersion()); | ||
@@ -65,0 +65,0 @@ self._partition.storeSnapshot(aggregate.id, aggregate._getSnapshot(), aggregate.getVersion()); |
{ | ||
"name": "demeine", | ||
"version": "0.3.2", | ||
"version": "0.3.3", | ||
"description": "DDDD - Distributed Domain Driven Design", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
32070
17