Fixed exporting email only posts

refs https://github.com/TryGhost/Team/issues/2678

Default post filter was used because we didn't pass a filter.
This commit is contained in:
Simon Backx 2023-04-05 10:14:11 +02:00
parent 108ccd7fb6
commit 0b26f09e88

View File

@ -34,7 +34,7 @@ class PostsExporter {
*/
async export({filter, order, limit}) {
const posts = await this.#models.Post.findPage({
filter,
filter: filter ?? 'status:published,status:sent',
order,
limit,
withRelated: [