Sort outbox by desc created at order
authorChocobozzz <me@florianbigard.com>
Tue, 5 May 2020 12:08:07 +0000 (14:08 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 5 May 2020 12:08:07 +0000 (14:08 +0200)
server/models/video/video.ts

index 96b96e5ac3a893f461182a9780e02e287f00d551..f5194e2593706137f6cd96f1b3763732d4472385 100644 (file)
@@ -859,7 +859,7 @@ export class VideoModel extends Model<VideoModel> {
       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 + ')')