From 7139845894ae24af397989f85350471cc5b91e2a Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 May 2020 14:08:07 +0200 Subject: Sort outbox by desc created at order --- server/models/video/video.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { distinct: true, offset: start, limit: count, - order: getVideoSort('createdAt', [ 'Tags', 'name', 'ASC' ] as any), // FIXME: sequelize typings + order: getVideoSort('-createdAt', [ 'Tags', 'name', 'ASC' ] as any), // FIXME: sequelize typings where: { id: { [Op.in]: Sequelize.literal('(' + rawQuery + ')') -- cgit v1.2.3