aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-05-05 14:08:07 +0200
committerChocobozzz <me@florianbigard.com>2020-05-05 14:08:07 +0200
commit7139845894ae24af397989f85350471cc5b91e2a (patch)
tree4452c52e139e9074974c2cd0ebd12a56cf3b35be /server/models/video/video.ts
parent06827932a2f93f0f9483b7a39c201fafee3d0efb (diff)
downloadPeerTube-7139845894ae24af397989f85350471cc5b91e2a.tar.gz
PeerTube-7139845894ae24af397989f85350471cc5b91e2a.tar.zst
PeerTube-7139845894ae24af397989f85350471cc5b91e2a.zip
Sort outbox by desc created at order
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r--server/models/video/video.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index 96b96e5ac..f5194e259 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -859,7 +859,7 @@ export class VideoModel extends Model<VideoModel> {
859 distinct: true, 859 distinct: true,
860 offset: start, 860 offset: start,
861 limit: count, 861 limit: count,
862 order: getVideoSort('createdAt', [ 'Tags', 'name', 'ASC' ] as any), // FIXME: sequelize typings 862 order: getVideoSort('-createdAt', [ 'Tags', 'name', 'ASC' ] as any), // FIXME: sequelize typings
863 where: { 863 where: {
864 id: { 864 id: {
865 [Op.in]: Sequelize.literal('(' + rawQuery + ')') 865 [Op.in]: Sequelize.literal('(' + rawQuery + ')')