mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 04:13:30 +03:00
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:
parent
108ccd7fb6
commit
0b26f09e88
@ -34,7 +34,7 @@ class PostsExporter {
|
|||||||
*/
|
*/
|
||||||
async export({filter, order, limit}) {
|
async export({filter, order, limit}) {
|
||||||
const posts = await this.#models.Post.findPage({
|
const posts = await this.#models.Post.findPage({
|
||||||
filter,
|
filter: filter ?? 'status:published,status:sent',
|
||||||
order,
|
order,
|
||||||
limit,
|
limit,
|
||||||
withRelated: [
|
withRelated: [
|
||||||
|
Loading…
Reference in New Issue
Block a user