Sort outbox by desc created at order

pull/2737/head
Chocobozzz 2020-05-05 14:08:07 +02:00
parent 06827932a2
commit 7139845894
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View 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 + ')')