Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ghost/core/core/server/services/posts/posts-exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ class PostsExporter {
async export({filter, order, limit}) {
const posts = await this.#models.Post.findPage({
filter: filter ?? 'status:published,status:sent',
order,
order: order ?? 'published_at DESC, id DESC',
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a fallback ordering so the sort order of the CSV file is deterministic for snapshot tests

limit,
withRelated: [
'tiers',
Expand Down
Loading
Loading