mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36: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('limit', opts.limit)
|
||||||
.query('offset', opts.limit * (opts.page - 1))
|
.query('offset', opts.limit * (opts.page - 1))
|
||||||
.query('orderBy', 'status', 'ASC')
|
.query('orderBy', 'status', 'ASC')
|
||||||
.query('orderBy', 'updated_at', 'DESC')
|
|
||||||
.query('orderBy', 'published_at', 'DESC')
|
.query('orderBy', 'published_at', 'DESC')
|
||||||
|
.query('orderBy', 'updated_at', 'DESC')
|
||||||
.fetch(_.omit(opts, 'page', 'limit'))
|
.fetch(_.omit(opts, 'page', 'limit'))
|
||||||
.then(function (collection) {
|
.then(function (collection) {
|
||||||
var qb;
|
var qb;
|
||||||
|
|
Loading…
Add table
Reference in a new issue