Fixed data generator not setting posts.plaintext value

no issue

- without `plaintext` set the API will not add generated excerpts to responses
This commit is contained in:
Kevin Ansfield 2024-06-13 16:12:29 +01:00
parent 66f7911d24
commit f9cc2bec0d

View File

@ -81,6 +81,7 @@ class PostsImporter extends TableImporter {
])
}),
html: content.map(paragraph => `<p>${paragraph}</p>`).join(''),
plaintext: content.join('\n\n'),
email_recipient_filter: 'all',
newsletter_id: this.type === 'post' && status === 'published' && luck(90) ? (visibility === 'paid' ? this.newsletters[0].id : this.newsletters[1].id) : null
};