Sort outbox by desc created at order
This commit is contained in:
parent
06827932a2
commit
7139845894
|
@ -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 + ')')
|
||||
|
|
Loading…
Reference in New Issue