thenativeweb / node-cqrs-domain

Node-cqrs-domain is a node.js module based on nodeEventStore that. It can be very useful as domain component if you work with (d)ddd, cqrs, eventdenormalizer, host, etc.
http://cqrs.js.org/pages/domain.html
MIT License
269 stars 57 forks source link

definePreLoadCondition handing commands version #111

Closed repkins closed 6 years ago

repkins commented 6 years ago

Hello, @adrai!

I have noticed a issue while handling a command in specific versions with pre-load conditions.

Given pre-load condition definition handles commands at version, for example, 0. When comes command to domain handler with version 1, Then instead of not handling such command in given pre-load condition, its does opposite, i.e., handles command at given pre-load condition, despite of command version is not equal to given pre-load condition version.

Please, take a look!

adrai commented 6 years ago

should be fixed with new version v2.9.6