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

Do not set revision when persistence is disabled #120

Closed nanov closed 6 years ago

nanov commented 6 years ago

Setting a revision on events from aggregates with disabled persistence is unneeded and introduces unwanted behaviour when those pass trough revision guard stores in other services.

By omitting the revision property on those events ( as they have none ) the revision guard store is not handling those and they work as intended.