diff options
Diffstat (limited to 'server/helpers/custom-validators/videos.ts')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index 4b1f6c069..edafba6e2 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -178,7 +178,7 @@ async function isVideoChannelOfAccountExist (channelId: number, user: UserModel, | |||
178 | const videoChannel = await VideoChannelModel.loadAndPopulateAccount(channelId) | 178 | const videoChannel = await VideoChannelModel.loadAndPopulateAccount(channelId) |
179 | if (videoChannel === null) { | 179 | if (videoChannel === null) { |
180 | res.status(400) | 180 | res.status(400) |
181 | .json({ error: 'Unknown video video channel on this instance.' }) | 181 | .json({ error: 'Unknown video `video channel` on this instance.' }) |
182 | .end() | 182 | .end() |
183 | 183 | ||
184 | return false | 184 | return false |
@@ -191,7 +191,7 @@ async function isVideoChannelOfAccountExist (channelId: number, user: UserModel, | |||
191 | const videoChannel = await VideoChannelModel.loadByIdAndAccount(channelId, user.Account.id) | 191 | const videoChannel = await VideoChannelModel.loadByIdAndAccount(channelId, user.Account.id) |
192 | if (videoChannel === null) { | 192 | if (videoChannel === null) { |
193 | res.status(400) | 193 | res.status(400) |
194 | .json({ error: 'Unknown video video channel for this account.' }) | 194 | .json({ error: 'Unknown video `video channel` for this account.' }) |
195 | .end() | 195 | .end() |
196 | 196 | ||
197 | return false | 197 | return false |