KABA-CCEAC / angular.CQRS

AngularJS module to provide CQRS integration on clientside
18 stars 3 forks source link

Pass complete event to denormalization function #6

Closed elmarx closed 9 years ago

elmarx commented 9 years ago

Currently, when registring a callback to the denormalization-service, the callback has two parameters: oldData and payload.

If the message-structure is configured to NOT contain the aggregate-id in the payload, there's currently no way to access the aggregate-id inside the denormalization function.

adrai commented 9 years ago

Advice: message structure should NOT be hard-coded (evt.payload)