- promise.then(videoChannel => {
- if (!videoChannel) {
- return res.status(404)
- .json({ error: 'Video channel not found' })
- .end()
- }
-
- res.locals.videoChannel = videoChannel
- callback()
- })
- .catch(err => {
- logger.error('Error in video channel request validator.', err)
- return res.sendStatus(500)
- })