From d3ea89759104e6c14b00443526f2c2a0a13aeb97 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 22 Dec 2017 12:10:40 +0100 Subject: Begin unit tests --- server/controllers/api/videos/comment.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'server/controllers') 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) { return sequelizeTypescript.transaction(async t => { return createVideoComment({ text: videoCommentInfo.text, - inReplyToComment: null, + inReplyToCommentId: null, video: res.locals.video, - actorId: res.locals.oauth.token.User.Account.Actor.id + accountId: res.locals.oauth.token.User.Account.id }, t) }) } @@ -106,9 +106,9 @@ function addVideoCommentReply (req: express.Request, res: express.Response, next return sequelizeTypescript.transaction(async t => { return createVideoComment({ text: videoCommentInfo.text, - inReplyToComment: res.locals.videoComment.id, + inReplyToCommentId: res.locals.videoComment.id, video: res.locals.video, - actorId: res.locals.oauth.token.User.Account.Actor.id + accountId: res.locals.oauth.token.User.Account.id }, t) }) } -- cgit v1.2.3