diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-11-17 15:52:26 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-11-27 19:40:52 +0100 |
commit | 79d5caf994edd87ad721994490f10677be277497 (patch) | |
tree | 0db45893d8b78e34ce3d59849d0a331977a63d4b /server/helpers | |
parent | 572f8d3dba44ba874f5c51023214273e3f5b643c (diff) | |
download | PeerTube-79d5caf994edd87ad721994490f10677be277497.tar.gz PeerTube-79d5caf994edd87ad721994490f10677be277497.tar.zst PeerTube-79d5caf994edd87ad721994490f10677be277497.zip |
Fix lint
Diffstat (limited to 'server/helpers')
-rw-r--r-- | server/helpers/custom-validators/videos.ts | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/server/helpers/custom-validators/videos.ts b/server/helpers/custom-validators/videos.ts index c97c9a2ad..07aadadb1 100644 --- a/server/helpers/custom-validators/videos.ts +++ b/server/helpers/custom-validators/videos.ts | |||
@@ -1,25 +1,23 @@ | |||
1 | import { values } from 'lodash' | ||
2 | import * as validator from 'validator' | ||
3 | import * as Promise from 'bluebird' | 1 | import * as Promise from 'bluebird' |
4 | import * as express from 'express' | 2 | import * as express from 'express' |
5 | import 'express-validator' | 3 | import 'express-validator' |
4 | import { values } from 'lodash' | ||
6 | import 'multer' | 5 | import 'multer' |
7 | 6 | import * as validator from 'validator' | |
7 | import { VideoRateType } from '../../../shared' | ||
8 | import { logger } from '../../helpers' | ||
8 | import { | 9 | import { |
9 | CONSTRAINTS_FIELDS, | 10 | CONSTRAINTS_FIELDS, |
11 | database as db, | ||
10 | VIDEO_CATEGORIES, | 12 | VIDEO_CATEGORIES, |
11 | VIDEO_LICENCES, | ||
12 | VIDEO_LANGUAGES, | 13 | VIDEO_LANGUAGES, |
13 | VIDEO_RATE_TYPES, | 14 | VIDEO_LICENCES, |
14 | VIDEO_PRIVACIES, | 15 | VIDEO_PRIVACIES, |
15 | database as db | 16 | VIDEO_RATE_TYPES |
16 | } from '../../initializers' | 17 | } from '../../initializers' |
17 | import { isUserUsernameValid } from './users' | ||
18 | import { isArray, exists } from './misc' | ||
19 | import { VideoInstance } from '../../models' | 18 | import { VideoInstance } from '../../models' |
20 | import { logger } from '../../helpers' | ||
21 | import { VideoRateType } from '../../../shared' | ||
22 | import { isActivityPubUrlValid } from './activitypub/misc' | 19 | import { isActivityPubUrlValid } from './activitypub/misc' |
20 | import { exists, isArray } from './misc' | ||
23 | 21 | ||
24 | const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS | 22 | const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS |
25 | const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES | 23 | const VIDEO_ABUSES_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_ABUSES |