X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fvideo-channels.ts;h=92c0de419eec0256a5862a22c4ada653543080ac;hb=fd4484f19eae8b0a0c30d5d30e98880c8708516a;hp=3af20a1b4d7571ee2af0e2fc91e2d65985dd2edc;hpb=08c1efbe32244c321de28b0f2a6aaa3f99f46b58;p=github%2FChocobozzz%2FPeerTube.git 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' import { isAccountIdExist } from '../../helpers/custom-validators/accounts' import { isIdOrUUIDValid } from '../../helpers/custom-validators/misc' import { - isVideoChannelDescriptionValid, isVideoChannelExist, - isVideoChannelNameValid, isVideoChannelSupportValid + isVideoChannelDescriptionValid, + isVideoChannelExist, + isVideoChannelNameValid, + isVideoChannelSupportValid } from '../../helpers/custom-validators/video-channels' import { logger } from '../../helpers/logger' import { UserModel } from '../../models/account/user' import { VideoChannelModel } from '../../models/video/video-channel' import { areValidationErrors } from './utils' -import { AccountModel } from '../../models/account/account' const listVideoAccountChannelsValidator = [ param('accountId').custom(isIdOrUUIDValid).withMessage('Should have a valid account id'),