You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The text was updated successfully, but these errors were encountered:
rakamoviz
changed the title
defaultCommandHandler bug, addin "undefined" to array of evtsToDispatch
defaultCommandHandler bug, adding "undefined" to array of evtsToDispatch
Mar 19, 2019
https://github.com/adrai/node-cqrs-domain/blob/4e70105b11a444b02c12f2850c61242b4998361c/lib/defaultCommandHandler.js#L896
There should be a check like this: rakamoviz@99fbc06 in order to avoid "undefined" getting pushed to evtsToDispatch
That happens when stream.eventsToDispatch is "undefined"; and stream.eventsToDispatch is "undefined" when you have eventPublisher attached to the eventstore: https://github.com/adrai/node-eventstore#async-interface
The text was updated successfully, but these errors were encountered: