aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/videos.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-08-25 18:36:49 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-08-25 18:36:49 +0200
commit556ddc319242aafef51bae9301423ecf8701a3af (patch)
tree413829b522193584df348f0356a702b3222c3419 /server/helpers/custom-validators/videos.ts
parentd15ab38a905e6b50972e6f884917db9198279daf (diff)
downloadPeerTube-556ddc319242aafef51bae9301423ecf8701a3af.tar.gz
PeerTube-556ddc319242aafef51bae9301423ecf8701a3af.tar.zst
PeerTube-556ddc319242aafef51bae9301423ecf8701a3af.zip
Upgrade common server dependencies
Diffstat (limited to 'server/helpers/custom-validators/videos.ts')
-rw-r--r--server/helpers/custom-validators/videos.ts58
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
171declare global { 171declare 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}