aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-01-30 08:17:31 +0100
committerChocobozzz <me@florianbigard.com>2020-01-30 08:17:31 +0100
commit215304eaa06020f27152108567c6a9de16b220d3 (patch)
tree06047e6cbec68a5ec675ff1fb06f4cce9109204c /server/middlewares
parentc7f36e4f485d92191b9d04c6a880724b02fa220b (diff)
downloadPeerTube-215304eaa06020f27152108567c6a9de16b220d3.tar.gz
PeerTube-215304eaa06020f27152108567c6a9de16b220d3.tar.zst
PeerTube-215304eaa06020f27152108567c6a9de16b220d3.zip
Fix tests
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/videos/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts
index 00ee375cb..6733d9dec 100644
--- a/server/middlewares/validators/videos/videos.ts
+++ b/server/middlewares/validators/videos/videos.ts
@@ -81,7 +81,7 @@ const videosAddValidator = getCommonVideoEditAttributes().concat([
81 duration = await getDurationFromVideoFile(videoFile.path) 81 duration = await getDurationFromVideoFile(videoFile.path)
82 } catch (err) { 82 } catch (err) {
83 logger.error('Invalid input file in videosAddValidator.', { err }) 83 logger.error('Invalid input file in videosAddValidator.', { err })
84 res.status(422) 84 res.status(400)
85 .json({ error: 'Invalid input file.' }) 85 .json({ error: 'Invalid input file.' })
86 86
87 return cleanUpReqFiles(req) 87 return cleanUpReqFiles(req)