- 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
+ isVideoChannelDisplayNameValid,
+ isVideoChannelSupportValid