diff options
Diffstat (limited to 'server/middlewares/validators/videos')
-rw-r--r-- | server/middlewares/validators/videos/videos.ts | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts index b70abf429..e247db708 100644 --- a/server/middlewares/validators/videos/videos.ts +++ b/server/middlewares/validators/videos/videos.ts | |||
@@ -14,18 +14,18 @@ import { | |||
14 | } from '../../../helpers/custom-validators/misc' | 14 | } from '../../../helpers/custom-validators/misc' |
15 | import { | 15 | import { |
16 | checkUserCanManageVideo, | 16 | checkUserCanManageVideo, |
17 | isVideoOriginallyPublishedAtValid, | 17 | doesVideoChannelOfAccountExist, |
18 | doesVideoExist, | ||
18 | isScheduleVideoUpdatePrivacyValid, | 19 | isScheduleVideoUpdatePrivacyValid, |
19 | isVideoCategoryValid, | 20 | isVideoCategoryValid, |
20 | doesVideoChannelOfAccountExist, | ||
21 | isVideoDescriptionValid, | 21 | isVideoDescriptionValid, |
22 | doesVideoExist, | ||
23 | isVideoFile, | 22 | isVideoFile, |
24 | isVideoFilterValid, | 23 | isVideoFilterValid, |
25 | isVideoImage, | 24 | isVideoImage, |
26 | isVideoLanguageValid, | 25 | isVideoLanguageValid, |
27 | isVideoLicenceValid, | 26 | isVideoLicenceValid, |
28 | isVideoNameValid, | 27 | isVideoNameValid, |
28 | isVideoOriginallyPublishedAtValid, | ||
29 | isVideoPrivacyValid, | 29 | isVideoPrivacyValid, |
30 | isVideoSupportValid, | 30 | isVideoSupportValid, |
31 | isVideoTagsValid | 31 | isVideoTagsValid |
@@ -37,10 +37,8 @@ import { authenticatePromiseIfNeeded } from '../../oauth' | |||
37 | import { areValidationErrors } from '../utils' | 37 | import { areValidationErrors } from '../utils' |
38 | import { cleanUpReqFiles } from '../../../helpers/express-utils' | 38 | import { cleanUpReqFiles } from '../../../helpers/express-utils' |
39 | import { VideoModel } from '../../../models/video/video' | 39 | import { VideoModel } from '../../../models/video/video' |
40 | import { UserModel } from '../../../models/account/user' | ||
41 | import { checkUserCanTerminateOwnershipChange, doesChangeVideoOwnershipExist } from '../../../helpers/custom-validators/video-ownership' | 40 | import { checkUserCanTerminateOwnershipChange, doesChangeVideoOwnershipExist } from '../../../helpers/custom-validators/video-ownership' |
42 | import { VideoChangeOwnershipAccept } from '../../../../shared/models/videos/video-change-ownership-accept.model' | 41 | import { VideoChangeOwnershipAccept } from '../../../../shared/models/videos/video-change-ownership-accept.model' |
43 | import { VideoChangeOwnershipModel } from '../../../models/video/video-change-ownership' | ||
44 | import { AccountModel } from '../../../models/account/account' | 42 | import { AccountModel } from '../../../models/account/account' |
45 | import { VideoFetchType } from '../../../helpers/video' | 43 | import { VideoFetchType } from '../../../helpers/video' |
46 | import { isNSFWQueryValid, isNumberArray, isStringArray } from '../../../helpers/custom-validators/search' | 44 | import { isNSFWQueryValid, isNumberArray, isStringArray } from '../../../helpers/custom-validators/search' |