]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/helpers/middlewares/video-captions.ts
Merge branch 'master' into develop
[github/Chocobozzz/PeerTube.git] / server / helpers / middlewares / video-captions.ts
index dc3d0144bc079c35d4d385878bfd93d2241b934b..1b2513b60111b306dff9bf00ea64fec24409f47b 100644 (file)
@@ -1,8 +1,8 @@
-import { VideoModel } from '../../models/video/video'
 import { Response } from 'express'
 import { VideoCaptionModel } from '../../models/video/video-caption'
+import { MVideoId } from '@server/typings/models'
 
-async function doesVideoCaptionExist (video: VideoModel, language: string, res: Response) {
+async function doesVideoCaptionExist (video: MVideoId, language: string, res: Response) {
   const videoCaption = await VideoCaptionModel.loadByVideoIdAndLanguage(video.id, language)
 
   if (!videoCaption) {