diff options
Diffstat (limited to 'server/helpers/custom-validators/videos.ts')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 58 |
1 files changed, 28 insertions, 30 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index 139fa760f..8b3a26644 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -168,35 +168,33 @@ export { | |||
168 | isVideoFileResolutionValid | 168 | isVideoFileResolutionValid |
169 | } | 169 | } |
170 | 170 | ||
171 | declare global { | 171 | declare module 'express-validator' { |
172 | namespace ExpressValidator { | 172 | export interface Validator { |
173 | export interface Validator { | 173 | isVideoIdOrUUIDValid, |
174 | isVideoIdOrUUIDValid, | 174 | isVideoAuthorValid, |
175 | isVideoAuthorValid, | 175 | isVideoDateValid, |
176 | isVideoDateValid, | 176 | isVideoCategoryValid, |
177 | isVideoCategoryValid, | 177 | isVideoLicenceValid, |
178 | isVideoLicenceValid, | 178 | isVideoLanguageValid, |
179 | isVideoLanguageValid, | 179 | isVideoNSFWValid, |
180 | isVideoNSFWValid, | 180 | isVideoDescriptionValid, |
181 | isVideoDescriptionValid, | 181 | isVideoDurationValid, |
182 | isVideoDurationValid, | 182 | isVideoInfoHashValid, |
183 | isVideoInfoHashValid, | 183 | isVideoNameValid, |
184 | isVideoNameValid, | 184 | isVideoTagsValid, |
185 | isVideoTagsValid, | 185 | isVideoThumbnailValid, |
186 | isVideoThumbnailValid, | 186 | isVideoThumbnailDataValid, |
187 | isVideoThumbnailDataValid, | 187 | isVideoExtnameValid, |
188 | isVideoExtnameValid, | 188 | isVideoUUIDValid, |
189 | isVideoUUIDValid, | 189 | isVideoAbuseReasonValid, |
190 | isVideoAbuseReasonValid, | 190 | isVideoAbuseReporterUsernameValid, |
191 | isVideoAbuseReporterUsernameValid, | 191 | isVideoFile, |
192 | isVideoFile, | 192 | isVideoViewsValid, |
193 | isVideoViewsValid, | 193 | isVideoLikesValid, |
194 | isVideoLikesValid, | 194 | isVideoRatingTypeValid, |
195 | isVideoRatingTypeValid, | 195 | isVideoDislikesValid, |
196 | isVideoDislikesValid, | 196 | isVideoEventCountValid, |
197 | isVideoEventCountValid, | 197 | isVideoFileSizeValid, |
198 | isVideoFileSizeValid, | 198 | isVideoFileResolutionValid |
199 | isVideoFileResolutionValid | ||
200 | } | ||
201 | } | 199 | } |
202 | } | 200 | } |