0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed post serialisation

This commit is contained in:
Peter Zimon 2019-11-05 11:20:03 +07:00
parent 977298b6e1
commit 5aaee4e8b2

View file

@ -48,12 +48,12 @@ async function listener(model, options) {
return;
}
const post = await serialize(model);
if (!post.send_email_when_published) {
if (!post.get('send_email_when_published')) {
return;
}
const post = await serialize(model);
const deliveredEvents = await models.Action.findAll({
filter: `event:delivered+resource_id:${model.id}`
});