projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix video comments feed SQL query
[oweals/peertube.git]
/
server
/
models
/
video
/
video-comment.ts
diff --git
a/server/models/video/video-comment.ts
b/server/models/video/video-comment.ts
index ba09522cceb492ca30fcf5ae7cc758cf9cda718b..cf2a80d531516ab2f2d287a9c7da3b4718ad5a71 100644
(file)
--- a/
server/models/video/video-comment.ts
+++ b/
server/models/video/video-comment.ts
@@
-144,6
+144,11
@@
enum ScopeNames {
},
{
fields: [ 'accountId' ]
+ },
+ {
+ fields: [
+ { name: 'createdAt', order: 'DESC' }
+ ]
}
]
})