diff --git a/core/server/services/auth/setup.js b/core/server/services/auth/setup.js index f78020c994..e563419825 100644 --- a/core/server/services/auth/setup.js +++ b/core/server/services/auth/setup.js @@ -142,7 +142,10 @@ async function doFixtures(data) { mobiledoc = mobiledoc.replace(/{{date}}/, date); const post = await models.Post.findOne({slug: key}); - await models.Post.edit({mobiledoc}, {id: post.id}); + + if (post) { + await models.Post.edit({mobiledoc}, {id: post.id}); + } }); return data;