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:
parent
977298b6e1
commit
5aaee4e8b2
1 changed files with 3 additions and 3 deletions
|
@ -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}`
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue