diff options
author | Chocobozzz <me@florianbigard.com> | 2020-01-30 08:17:31 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2020-01-30 08:17:31 +0100 |
commit | 215304eaa06020f27152108567c6a9de16b220d3 (patch) | |
tree | 06047e6cbec68a5ec675ff1fb06f4cce9109204c /server/middlewares/validators/videos | |
parent | c7f36e4f485d92191b9d04c6a880724b02fa220b (diff) | |
download | PeerTube-215304eaa06020f27152108567c6a9de16b220d3.tar.gz PeerTube-215304eaa06020f27152108567c6a9de16b220d3.tar.zst PeerTube-215304eaa06020f27152108567c6a9de16b220d3.zip |
Fix tests
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r-- | server/middlewares/validators/videos/videos.ts | 2 |
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) |