1 import { Response } from 'express'
2 import { VideoBlacklistModel } from '../../models/video/video-blacklist'
4 async function doesVideoBlacklistExist (videoId: number, res: Response) {
5 const videoBlacklist = await VideoBlacklistModel.loadByVideoId(videoId)
7 if (videoBlacklist === null) {
9 .json({ error: 'Blacklisted video not found' })
15 res.locals.videoBlacklist = videoBlacklist
19 // ---------------------------------------------------------------------------
22 doesVideoBlacklistExist