mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
parent
2175310b1c
commit
7b390e73e6
1 changed files with 1 additions and 1 deletions
|
@ -281,8 +281,8 @@ Post = ghostBookshelf.Model.extend({
|
|||
.query('limit', opts.limit)
|
||||
.query('offset', opts.limit * (opts.page - 1))
|
||||
.query('orderBy', 'status', 'ASC')
|
||||
.query('orderBy', 'updated_at', 'DESC')
|
||||
.query('orderBy', 'published_at', 'DESC')
|
||||
.query('orderBy', 'updated_at', 'DESC')
|
||||
.fetch(_.omit(opts, 'page', 'limit'))
|
||||
.then(function (collection) {
|
||||
var qb;
|
||||
|
|
Loading…
Add table
Reference in a new issue