aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/videos
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-20 13:59:56 +0100
committerChocobozzz <me@florianbigard.com>2020-01-20 15:41:57 +0100
commit5fbd08be3749e08662b39b3ff74bbd5b458063ef (patch)
treeb21eef26c4f290cc1a8d5d8aa89a4c92bf897f6d /server/middlewares/validators/videos
parent70870adfacbbcfbe223651b0c74811d21805ab0f (diff)
downloadPeerTube-5fbd08be3749e08662b39b3ff74bbd5b458063ef.tar.gz
PeerTube-5fbd08be3749e08662b39b3ff74bbd5b458063ef.tar.zst
PeerTube-5fbd08be3749e08662b39b3ff74bbd5b458063ef.zip
Fix typo in error log
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r--server/middlewares/validators/videos/video-comments.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/videos/video-comments.ts b/server/middlewares/validators/videos/video-comments.ts
index eb07d9430..77c5f940d 100644
--- a/server/middlewares/validators/videos/video-comments.ts
+++ b/server/middlewares/validators/videos/video-comments.ts
@@ -134,7 +134,7 @@ async function doesVideoCommentThreadExist (idArg: number | string, video: MVide
134 134
135 if (videoComment.videoId !== video.id) { 135 if (videoComment.videoId !== video.id) {
136 res.status(400) 136 res.status(400)
137 .json({ error: 'Video comment is associated to this video.' }) 137 .json({ error: 'Video comment is not associated to this video.' })
138 .end() 138 .end()
139 139
140 return false 140 return false
@@ -166,7 +166,7 @@ async function doesVideoCommentExist (idArg: number | string, video: MVideoId, r
166 166
167 if (videoComment.videoId !== video.id) { 167 if (videoComment.videoId !== video.id) {
168 res.status(400) 168 res.status(400)
169 .json({ error: 'Video comment is associated to this video.' }) 169 .json({ error: 'Video comment is not associated to this video.' })
170 .end() 170 .end()
171 171
172 return false 172 return false