mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix tests
This commit is contained in:
@@ -81,7 +81,7 @@ const videosAddValidator = getCommonVideoEditAttributes().concat([
|
||||
duration = await getDurationFromVideoFile(videoFile.path)
|
||||
} catch (err) {
|
||||
logger.error('Invalid input file in videosAddValidator.', { err })
|
||||
res.status(422)
|
||||
res.status(400)
|
||||
.json({ error: 'Invalid input file.' })
|
||||
|
||||
return cleanUpReqFiles(req)
|
||||
|
||||
Reference in New Issue
Block a user