aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-28 11:45:10 +0100
committerChocobozzz <me@florianbigard.com>2017-12-28 11:45:10 +0100
commitdb799da3d2b2ea465165df78ff71effa653b6309 (patch)
tree11a01db2c9521797f63b6ea6cc78745132505ee4 /server/models
parentda854ddd502cd70685ef779c673b9e63757b8aa0 (diff)
downloadPeerTube-db799da3d2b2ea465165df78ff71effa653b6309.tar.gz
PeerTube-db799da3d2b2ea465165df78ff71effa653b6309.tar.zst
PeerTube-db799da3d2b2ea465165df78ff71effa653b6309.zip
Add get old comment on follow tests
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video-comment.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/models/video/video-comment.ts b/server/models/video/video-comment.ts
index 1992c2dd8..d381ccafa 100644
--- a/server/models/video/video-comment.ts
+++ b/server/models/video/video-comment.ts
@@ -103,8 +103,10 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
103 103
104 @BelongsTo(() => VideoCommentModel, { 104 @BelongsTo(() => VideoCommentModel, {
105 foreignKey: { 105 foreignKey: {
106 name: 'originCommentId',
106 allowNull: true 107 allowNull: true
107 }, 108 },
109 as: 'OriginVideoComment',
108 onDelete: 'CASCADE' 110 onDelete: 'CASCADE'
109 }) 111 })
110 OriginVideoComment: VideoCommentModel 112 OriginVideoComment: VideoCommentModel
@@ -115,6 +117,7 @@ export class VideoCommentModel extends Model<VideoCommentModel> {
115 117
116 @BelongsTo(() => VideoCommentModel, { 118 @BelongsTo(() => VideoCommentModel, {
117 foreignKey: { 119 foreignKey: {
120 name: 'inReplyToCommentId',
118 allowNull: true 121 allowNull: true
119 }, 122 },
120 as: 'InReplyToVideoComment', 123 as: 'InReplyToVideoComment',