0
Fork 0
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:
Naz 2023-06-27 12:40:53 +07:00 committed by naz
parent 5dd6159ac6
commit 9767e1f591

View file

@ -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,