From a3fd560d11554073f0247f3785192cab920ae602 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 12 Jan 2018 11:59:52 +0100 Subject: [PATCH] Fix tree comment rendering Sort by updatedAt too --- server/models/video/video-comment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts index fffa4bb57..c10d7c7c8 100644 --- a/server/models/video/video-comment.ts +++ b/server/models/video/video-comment.ts @@ -253,7 +253,7 @@ export class VideoCommentModel extends Model { static listThreadCommentsForApi (videoId: number, threadId: number) { const query = { - order: [ [ 'createdAt', 'ASC' ] ], + order: [ [ 'createdAt', 'ASC' ], [ 'updatedAt', 'ASC' ] ], where: { videoId, [ Sequelize.Op.or ]: [