diff options
author | Chocobozzz <me@florianbigard.com> | 2020-06-05 10:42:36 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-06-09 14:52:55 +0200 |
commit | b84d4c809f0b1c4b3f2029f56b81dbca37364f36 (patch) | |
tree | 1896405fa45c980eaf7860c838daa5500c10d50f /server/models/video/video-comment.ts | |
parent | 0f32d49915378178eff4ab954c71f17e06aa8e1a (diff) | |
download | PeerTube-b84d4c809f0b1c4b3f2029f56b81dbca37364f36.tar.gz PeerTube-b84d4c809f0b1c4b3f2029f56b81dbca37364f36.tar.zst PeerTube-b84d4c809f0b1c4b3f2029f56b81dbca37364f36.zip |
Fix video comments feed SQL query
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r-- | server/models/video/video-comment.ts | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index ba09522cc..cf2a80d53 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -144,6 +144,11 @@ enum ScopeNames { | |||
144 | }, | 144 | }, |
145 | { | 145 | { |
146 | fields: [ 'accountId' ] | 146 | fields: [ 'accountId' ] |
147 | }, | ||
148 | { | ||
149 | fields: [ | ||
150 | { name: 'createdAt', order: 'DESC' } | ||
151 | ] | ||
147 | } | 152 | } |
148 | ] | 153 | ] |
149 | }) | 154 | }) |