diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/middlewares/validators/video-channels.ts | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/middlewares/validators/video-channels.ts b/server/middlewares/validators/video-channels.ts index 3af20a1b4..92c0de419 100644 --- a/server/middlewares/validators/video-channels.ts +++ b/server/middlewares/validators/video-channels.ts | |||
@@ -4,14 +4,15 @@ import { UserRight } from '../../../shared' | |||
4 | import { isAccountIdExist } from '../../helpers/custom-validators/accounts' | 4 | import { isAccountIdExist } from '../../helpers/custom-validators/accounts' |
5 | import { isIdOrUUIDValid } from '../../helpers/custom-validators/misc' | 5 | import { isIdOrUUIDValid } from '../../helpers/custom-validators/misc' |
6 | import { | 6 | import { |
7 | isVideoChannelDescriptionValid, isVideoChannelExist, | 7 | isVideoChannelDescriptionValid, |
8 | isVideoChannelNameValid, isVideoChannelSupportValid | 8 | isVideoChannelExist, |
9 | isVideoChannelNameValid, | ||
10 | isVideoChannelSupportValid | ||
9 | } from '../../helpers/custom-validators/video-channels' | 11 | } from '../../helpers/custom-validators/video-channels' |
10 | import { logger } from '../../helpers/logger' | 12 | import { logger } from '../../helpers/logger' |
11 | import { UserModel } from '../../models/account/user' | 13 | import { UserModel } from '../../models/account/user' |
12 | import { VideoChannelModel } from '../../models/video/video-channel' | 14 | import { VideoChannelModel } from '../../models/video/video-channel' |
13 | import { areValidationErrors } from './utils' | 15 | import { areValidationErrors } from './utils' |
14 | import { AccountModel } from '../../models/account/account' | ||
15 | 16 | ||
16 | const listVideoAccountChannelsValidator = [ | 17 | const listVideoAccountChannelsValidator = [ |
17 | param('accountId').custom(isIdOrUUIDValid).withMessage('Should have a valid account id'), | 18 | param('accountId').custom(isIdOrUUIDValid).withMessage('Should have a valid account id'), |