Fix tree comment rendering

Sort by updatedAt too
pull/200/head
Chocobozzz 2018-01-12 11:59:52 +01:00
parent 32b2b43c06
commit a3fd560d11
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
static listThreadCommentsForApi (videoId: number, threadId: number) {
const query = {
order: [ [ 'createdAt', 'ASC' ] ],
order: [ [ 'createdAt', 'ASC' ], [ 'updatedAt', 'ASC' ] ],
where: {
videoId,
[ Sequelize.Op.or ]: [