]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/files-cache/videos-preview-cache.ts
Fix tsconfig with CLI tools
[github/Chocobozzz/PeerTube.git] / server / lib / files-cache / videos-preview-cache.ts
index a68619d076da9372bd6c6b00ad056d6da6e1b626..3da6bb1388c5bdf1361c50181357f48316725e9c 100644 (file)
@@ -18,7 +18,7 @@ class VideosPreviewCache extends AbstractVideoStaticFileCache <string> {
   }
 
   async getFilePathImpl (videoUUID: string) {
-    const video = await VideoModel.loadByUUIDWithFile(videoUUID)
+    const video = await VideoModel.loadByUUID(videoUUID)
     if (!video) return undefined
 
     if (video.isOwned()) return { isOwned: true, path: video.getPreview().getPath() }