diff options
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/videos.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts index 1d19ebfd9..576814fcb 100644 --- a/server/middlewares/validators/videos.ts +++ b/server/middlewares/validators/videos.ts | |||
@@ -39,7 +39,7 @@ function videosAddValidator (req: express.Request, res: express.Response, next: | |||
39 | }) | 39 | }) |
40 | .then(duration => { | 40 | .then(duration => { |
41 | // Previous test failed, abort | 41 | // Previous test failed, abort |
42 | if (duration === undefined) return | 42 | if (duration === undefined) return undefined |
43 | 43 | ||
44 | if (!isVideoDurationValid('' + duration)) { | 44 | if (!isVideoDurationValid('' + duration)) { |
45 | return res.status(400).send('Duration of the video file is too big (max: ' + CONSTRAINTS_FIELDS.VIDEOS.DURATION.max + 's).') | 45 | return res.status(400).send('Duration of the video file is too big (max: ' + CONSTRAINTS_FIELDS.VIDEOS.DURATION.max + 's).') |