-function isVideoChannelUUIDValid (value: string) {
- return exists(value) && validator.isUUID('' + value, 4)
-}
-
-function checkVideoChannelExists (id: string, res: express.Response, callback: () => void) {
- let promise: Promise<VideoChannelInstance>
+async function isVideoChannelExist (id: string, res: express.Response) {
+ let videoChannel: VideoChannelModel