Fix tests

pull/2438/head
Chocobozzz 2020-01-30 08:17:31 +01:00
parent c7f36e4f48
commit 215304eaa0
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -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)