diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-01 10:15:28 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-01 10:15:28 +0200 |
commit | 970ceac0a6bf4990b8924738591df4949491ec9b (patch) | |
tree | 444070d8409fced91971c4401e65640d6fd13cbf /server/lib/video-comment.ts | |
parent | bfbd912886eba17b4aa9a40dcef2fddc685d85bf (diff) | |
download | PeerTube-970ceac0a6bf4990b8924738591df4949491ec9b.tar.gz PeerTube-970ceac0a6bf4990b8924738591df4949491ec9b.tar.zst PeerTube-970ceac0a6bf4990b8924738591df4949491ec9b.zip |
Fix multiple server tests
Diffstat (limited to 'server/lib/video-comment.ts')
-rw-r--r-- | server/lib/video-comment.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/video-comment.ts b/server/lib/video-comment.ts index bfe22d225..449aa74cb 100644 --- a/server/lib/video-comment.ts +++ b/server/lib/video-comment.ts | |||
@@ -27,10 +27,10 @@ async function createVideoComment (obj: { | |||
27 | inReplyToCommentId, | 27 | inReplyToCommentId, |
28 | videoId: obj.video.id, | 28 | videoId: obj.video.id, |
29 | accountId: obj.account.id, | 29 | accountId: obj.account.id, |
30 | url: 'fake url' | 30 | url: new Date().toISOString() |
31 | }, { transaction: t, validate: false } as any) // FIXME: sequelize typings | 31 | }, { transaction: t, validate: false }) |
32 | 32 | ||
33 | comment.set('url', getVideoCommentActivityPubUrl(obj.video, comment)) | 33 | comment.url = getVideoCommentActivityPubUrl(obj.video, comment) |
34 | 34 | ||
35 | const savedComment = await comment.save({ transaction: t }) | 35 | const savedComment = await comment.save({ transaction: t }) |
36 | savedComment.InReplyToVideoComment = obj.inReplyToComment | 36 | savedComment.InReplyToVideoComment = obj.inReplyToComment |