diff options
Diffstat (limited to 'server/middlewares')
-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 8a9b383b8..a032d14ce 100644 --- a/server/middlewares/validators/videos.ts +++ b/server/middlewares/validators/videos.ts | |||
@@ -79,7 +79,7 @@ const videosAddValidator = [ | |||
79 | }) | 79 | }) |
80 | .then(duration => { | 80 | .then(duration => { |
81 | // Previous test failed, abort | 81 | // Previous test failed, abort |
82 | if (duration === undefined) return | 82 | if (duration === undefined) return undefined |
83 | 83 | ||
84 | if (!isVideoDurationValid('' + duration)) { | 84 | if (!isVideoDurationValid('' + duration)) { |
85 | return res.status(400) | 85 | return res.status(400) |