diff --git a/core/server/data/migrations/versions/4.0/23-regenerate-posts-html.js b/core/server/data/migrations/versions/4.0/23-regenerate-posts-html.js index d4aa7d44c2..2ec714c7a5 100644 --- a/core/server/data/migrations/versions/4.0/23-regenerate-posts-html.js +++ b/core/server/data/migrations/versions/4.0/23-regenerate-posts-html.js @@ -30,10 +30,12 @@ module.exports = createIrreversibleMigration(async (knex) => { mobiledoc = JSON.parse(post.mobiledoc || null); if (!mobiledoc) { - return logging.warn(`No mobiledoc for ${id}. Skipping.`); + logging.warn(`No mobiledoc for ${id}. Skipping.`); + continue; } } catch (err) { - return logging.warn(`Invalid JSON structure for ${id}. Skipping`); + logging.warn(`Invalid JSON structure for ${id}. Skipping`); + continue; } const html = mobiledocLib.mobiledocHtmlRenderer.render(mobiledoc);