diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-25 16:23:44 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-07-25 16:23:44 +0200 |
commit | c8861d5dc0436ef4342ce517241e3591fa256a13 (patch) | |
tree | ca47c09d1f7f1e2aa62c684d576faa938eb47af7 /server/helpers/custom-validators/videos.ts | |
parent | b4c19345c19b0891142c69308cd9447f2161188c (diff) | |
download | PeerTube-c8861d5dc0436ef4342ce517241e3591fa256a13.tar.gz PeerTube-c8861d5dc0436ef4342ce517241e3591fa256a13.tar.zst PeerTube-c8861d5dc0436ef4342ce517241e3591fa256a13.zip |
Fix express validator
Diffstat (limited to 'server/helpers/custom-validators/videos.ts')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index 157e1a8e3..9ab1ef234 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -1,9 +1,6 @@ | |||
1 | import { Response } from 'express' | ||
2 | import 'express-validator' | ||
3 | import { values } from 'lodash' | 1 | import { values } from 'lodash' |
4 | import 'multer' | ||
5 | import * as validator from 'validator' | 2 | import * as validator from 'validator' |
6 | import { UserRight, VideoFilter, VideoPrivacy, VideoRateType } from '../../../shared' | 3 | import { VideoFilter, VideoPrivacy, VideoRateType } from '../../../shared' |
7 | import { | 4 | import { |
8 | CONSTRAINTS_FIELDS, | 5 | CONSTRAINTS_FIELDS, |
9 | MIMETYPES, | 6 | MIMETYPES, |
@@ -13,9 +10,7 @@ import { | |||
13 | VIDEO_RATE_TYPES, | 10 | VIDEO_RATE_TYPES, |
14 | VIDEO_STATES | 11 | VIDEO_STATES |
15 | } from '../../initializers/constants' | 12 | } from '../../initializers/constants' |
16 | import { VideoModel } from '../../models/video/video' | ||
17 | import { exists, isArray, isDateValid, isFileValid } from './misc' | 13 | import { exists, isArray, isDateValid, isFileValid } from './misc' |
18 | import { UserModel } from '../../models/account/user' | ||
19 | import * as magnetUtil from 'magnet-uri' | 14 | import * as magnetUtil from 'magnet-uri' |
20 | 15 | ||
21 | const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS | 16 | const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS |