-import * as express from 'express'
-import 'express-validator'
-import 'multer'
-import * as validator from 'validator'
+import validator from 'validator'
import { CONSTRAINTS_FIELDS } from '../../initializers/constants'
-import { VideoChannelModel } from '../../models/video/video-channel'
import { exists } from './misc'
const VIDEO_CHANNELS_CONSTRAINTS_FIELDS = CONSTRAINTS_FIELDS.VIDEO_CHANNELS
export {
isVideoChannelDescriptionValid,
isVideoChannelNameValid,
- isVideoChannelSupportValid,
-}
-
-function processVideoChannelExist (videoChannel: VideoChannelModel, res: express.Response) {
- if (!videoChannel) {
- res.status(404)
- .json({ error: 'Video channel not found' })
- .end()
-
- return false
- }
-
- res.locals.videoChannel = videoChannel
- return true
+ isVideoChannelSupportValid
}