projects
/
oweals
/
peertube.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c7f36e4
)
Fix tests
author
Chocobozzz
<me@florianbigard.com>
Thu, 30 Jan 2020 07:17:31 +0000
(08:17 +0100)
committer
Chocobozzz
<me@florianbigard.com>
Thu, 30 Jan 2020 07:17:31 +0000
(08:17 +0100)
server/middlewares/validators/videos/videos.ts
patch
|
blob
|
history
diff --git
a/server/middlewares/validators/videos/videos.ts
b/server/middlewares/validators/videos/videos.ts
index 00ee375cb7f549970df88c4788edf456c777987d..6733d9dec4366cf32b821a7b3a03d715ca0e00d6 100644
(file)
--- a/
server/middlewares/validators/videos/videos.ts
+++ b/
server/middlewares/validators/videos/videos.ts
@@
-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(4
22
)
+ res.status(4
00
)
.json({ error: 'Invalid input file.' })
return cleanUpReqFiles(req)