mirror of https://github.com/Chocobozzz/PeerTube
parent
32b2b43c06
commit
a3fd560d11
|
@ -253,7 +253,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
|
||||||
|
|
||||||
static listThreadCommentsForApi (videoId: number, threadId: number) {
|
static listThreadCommentsForApi (videoId: number, threadId: number) {
|
||||||
const query = {
|
const query = {
|
||||||
order: [ [ 'createdAt', 'ASC' ] ],
|
order: [ [ 'createdAt', 'ASC' ], [ 'updatedAt', 'ASC' ] ],
|
||||||
where: {
|
where: {
|
||||||
videoId,
|
videoId,
|
||||||
[ Sequelize.Op.or ]: [
|
[ Sequelize.Op.or ]: [
|
||||||
|
|
Loading…
Reference in New Issue