thenativeweb / node-cqrs-eventdenormalizer

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

Wrong ViewBuilder triggered #66

Closed alemhnan closed 6 years ago

alemhnan commented 6 years ago

I am triggering the event 'A'.'B'.'C'. (context.aggregate.event) and the ViewBuilder 'A'.'B'.'C' get correctly triggered.

But also the ViewBuilder D.E.C. ('C' is the same string but context and aggregate different). I'm fully specifying the ViewBuilders with name/aggregate/context in the definition like you showed me here .

I tried different name for the file with the same results. I also tried to put unrelated random names just to uncouple the definition from the name of the file.

Do you have any hints? Might it be a bug?

adrai commented 6 years ago

Have you defined the context and aggregate path here? https://github.com/adrai/node-cqrs-eventdenormalizer#define-the-event-structure

alemhnan commented 6 years ago

No, or better, I did but not completely. Going to try right now, thanks again for the prompt answer.

alemhnan commented 6 years ago

That was it. Awesome. Thanks again.