projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0682793
)
Sort outbox by desc created at order
author
Chocobozzz
<me@florianbigard.com>
Tue, 5 May 2020 12:08:07 +0000
(14:08 +0200)
committer
Chocobozzz
<me@florianbigard.com>
Tue, 5 May 2020 12:08:07 +0000
(14:08 +0200)
server/models/video/video.ts
patch
|
blob
|
history
diff --git
a/server/models/video/video.ts
b/server/models/video/video.ts
index 96b96e5ac3a893f461182a9780e02e287f00d551..f5194e2593706137f6cd96f1b3763732d4472385 100644
(file)
--- a/
server/models/video/video.ts
+++ b/
server/models/video/video.ts
@@
-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 + ')')