mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed PostEditedEvent data mapping
refs https://github.com/TryGhost/Team/issues/3169 - The "current" part of the payload should always have the "id" included to make the data structure easier to use for the event consumer
This commit is contained in:
parent
5dd6159ac6
commit
9767e1f591
1 changed files with 1 additions and 0 deletions
|
@ -26,6 +26,7 @@ const domainEventDispatcher = (modelEventName, data) => {
|
|||
event = PostEditedEvent.create({
|
||||
id: data.id,
|
||||
current: {
|
||||
id: data.id,
|
||||
title: data.attributes.title,
|
||||
status: data.attributes.status,
|
||||
featured: data.attributes.featured,
|
||||
|
|
Loading…
Add table
Reference in a new issue