aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2017-12-22 12:10:40 +0100
committerChocobozzz <me@florianbigard.com>2017-12-22 12:12:33 +0100
commitd3ea89759104e6c14b00443526f2c2a0a13aeb97 (patch)
treee30dc7025f284c163a450cb08f7060875e368e6c /server/controllers
parentbf1f650817dadfd5eeee9e5e0b6b6938c136e25d (diff)
downloadPeerTube-d3ea89759104e6c14b00443526f2c2a0a13aeb97.tar.gz
PeerTube-d3ea89759104e6c14b00443526f2c2a0a13aeb97.tar.zst
PeerTube-d3ea89759104e6c14b00443526f2c2a0a13aeb97.zip
Begin unit tests
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/videos/comment.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/server/controllers/api/videos/comment.ts b/server/controllers/api/videos/comment.ts
index 81c9e7d16..ac64f0154 100644
--- a/server/controllers/api/videos/comment.ts
+++ b/server/controllers/api/videos/comment.ts
@@ -78,9 +78,9 @@ function addVideoCommentThread (req: express.Request, res: express.Response) {
78 return sequelizeTypescript.transaction(async t => { 78 return sequelizeTypescript.transaction(async t => {
79 return createVideoComment({ 79 return createVideoComment({
80 text: videoCommentInfo.text, 80 text: videoCommentInfo.text,
81 inReplyToComment: null, 81 inReplyToCommentId: null,
82 video: res.locals.video, 82 video: res.locals.video,
83 actorId: res.locals.oauth.token.User.Account.Actor.id 83 accountId: res.locals.oauth.token.User.Account.id
84 }, t) 84 }, t)
85 }) 85 })
86} 86}
@@ -106,9 +106,9 @@ function addVideoCommentReply (req: express.Request, res: express.Response, next
106 return sequelizeTypescript.transaction(async t => { 106 return sequelizeTypescript.transaction(async t => {
107 return createVideoComment({ 107 return createVideoComment({
108 text: videoCommentInfo.text, 108 text: videoCommentInfo.text,
109 inReplyToComment: res.locals.videoComment.id, 109 inReplyToCommentId: res.locals.videoComment.id,
110 video: res.locals.video, 110 video: res.locals.video,
111 actorId: res.locals.oauth.token.User.Account.Actor.id 111 accountId: res.locals.oauth.token.User.Account.id
112 }, t) 112 }, t)
113 }) 113 })
114} 114}