diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-19 09:41:03 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-19 10:48:44 +0100 |
commit | 3bb6c52645af84832212c99fdec04143e4230180 (patch) | |
tree | d91539e2aed89bdd0e6d0530db5e92da45e20fb9 /server/models/video/video-comment.ts | |
parent | 2519d9fec6f84906d1b10770be791ad367186ca7 (diff) | |
download | PeerTube-3bb6c52645af84832212c99fdec04143e4230180.tar.gz PeerTube-3bb6c52645af84832212c99fdec04143e4230180.tar.zst PeerTube-3bb6c52645af84832212c99fdec04143e4230180.zip |
Fix sort inconsistency
Diffstat (limited to 'server/models/video/video-comment.ts')
-rw-r--r-- | server/models/video/video-comment.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index ab0f05d6e..47e3211a3 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts | |||
@@ -268,7 +268,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> { | |||
268 | const query = { | 268 | const query = { |
269 | offset: start, | 269 | offset: start, |
270 | limit: count, | 270 | limit: count, |
271 | order: [ getSort(sort) ], | 271 | order: getSort(sort), |
272 | where: { | 272 | where: { |
273 | videoId, | 273 | videoId, |
274 | inReplyToCommentId: null | 274 | inReplyToCommentId: null |