Fix tests
This commit is contained in:
parent
c7f36e4f48
commit
215304eaa0
|
@ -81,7 +81,7 @@ const videosAddValidator = getCommonVideoEditAttributes().concat([
|
||||||
duration = await getDurationFromVideoFile(videoFile.path)
|
duration = await getDurationFromVideoFile(videoFile.path)
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error('Invalid input file in videosAddValidator.', { err })
|
logger.error('Invalid input file in videosAddValidator.', { err })
|
||||||
res.status(422)
|
res.status(400)
|
||||||
.json({ error: 'Invalid input file.' })
|
.json({ error: 'Invalid input file.' })
|
||||||
|
|
||||||
return cleanUpReqFiles(req)
|
return cleanUpReqFiles(req)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user