aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/videos.ts')
-rw-r--r--server/helpers/custom-validators/videos.ts7
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 @@
1import { Response } from 'express'
2import 'express-validator'
3import { values } from 'lodash' 1import { values } from 'lodash'
4import 'multer'
5import * as validator from 'validator' 2import * as validator from 'validator'
6import { UserRight, VideoFilter, VideoPrivacy, VideoRateType } from '../../../shared' 3import { VideoFilter, VideoPrivacy, VideoRateType } from '../../../shared'
7import { 4import {
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'
16import { VideoModel } from '../../models/video/video'
17import { exists, isArray, isDateValid, isFileValid } from './misc' 13import { exists, isArray, isDateValid, isFileValid } from './misc'
18import { UserModel } from '../../models/account/user'
19import * as magnetUtil from 'magnet-uri' 14import * as magnetUtil from 'magnet-uri'
20 15
21const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS 16const VIDEOS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEOS