aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-comment.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-06-05 10:42:36 +0200
committerChocobozzz <me@florianbigard.com>2020-06-09 14:52:55 +0200
commitb84d4c809f0b1c4b3f2029f56b81dbca37364f36 (patch)
tree1896405fa45c980eaf7860c838daa5500c10d50f /server/models/video/video-comment.ts
parent0f32d49915378178eff4ab954c71f17e06aa8e1a (diff)
downloadPeerTube-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.ts5
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})