From: Chocobozzz Date: Tue, 5 May 2020 12:08:07 +0000 (+0200) Subject: Sort outbox by desc created at order X-Git-Tag: v2.2.0-rc.1~86 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7139845894ae24af397989f85350471cc5b91e2a;p=oweals%2Fpeertube.git Sort outbox by desc created at order --- 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 + ')')