diff options
Diffstat (limited to 'server/middlewares/validators/videos.ts')
-rw-r--r-- | server/middlewares/validators/videos.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts index 3cbf98312..52b4475ce 100644 --- a/server/middlewares/validators/videos.ts +++ b/server/middlewares/validators/videos.ts | |||
@@ -6,7 +6,6 @@ import { | |||
6 | isVideoAbuseReasonValid, | 6 | isVideoAbuseReasonValid, |
7 | isVideoCategoryValid, | 7 | isVideoCategoryValid, |
8 | isVideoDescriptionValid, | 8 | isVideoDescriptionValid, |
9 | isVideoDurationValid, | ||
10 | isVideoExist, | 9 | isVideoExist, |
11 | isVideoFile, | 10 | isVideoFile, |
12 | isVideoLanguageValid, | 11 | isVideoLanguageValid, |
@@ -82,14 +81,6 @@ const videosAddValidator = [ | |||
82 | return | 81 | return |
83 | } | 82 | } |
84 | 83 | ||
85 | if (!isVideoDurationValid('' + duration)) { | ||
86 | return res.status(400) | ||
87 | .json({ | ||
88 | error: 'Duration of the video file is too big (max: ' + CONSTRAINTS_FIELDS.VIDEOS.DURATION.max + 's).' | ||
89 | }) | ||
90 | .end() | ||
91 | } | ||
92 | |||
93 | videoFile['duration'] = duration | 84 | videoFile['duration'] = duration |
94 | 85 | ||
95 | return next() | 86 | return next() |