novu: [NV-438] - Add payload content to notification object
Why?
After triggering an event and passing a payload object to it, the payload object is never saved on the message entity returned by the notifications API specifically for the notification center usecase.
What?
Persist the payload object inside the generated Notification Message for the channel including the original payload object sent by the API Users.
Where?
The unit responsible for creating the notification message is located inside the trigger-event.usecase.ts file inside the @novu/api package.
Done definition
- e2e test for the trigger event asserting the created message to contain the
payloadobject when returned by the API.
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 15 (9 by maintainers)
Hey @singhgulshan I see the problem, shortly I will create a PR to fix it. Thanks for raising it up! 👍🏻
@singhgulshan we have merged this and will deploy soon, regarding the option to update the payload object with API we are planning to add this support in v0.6.0 in the next couple of weeks. Will update you on it.