-async function isVideoExist (id: string, res: Response) {
- let video: VideoModel | null
+async function doesVideoExist (id: number | string, res: Response, fetchType: VideoFetchType = 'all') {
+ const userId = res.locals.oauth ? res.locals.oauth.token.User.id : undefined