]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/files-cache/videos-torrent-cache.ts
Rename video full loading
[github/Chocobozzz/PeerTube.git] / server / lib / files-cache / videos-torrent-cache.ts
index 23217f1403119acfdb1f5b943c51f73260eb0fd4..c8188b79fddcf622c88d4f978663523a8618e09c 100644 (file)
@@ -40,7 +40,7 @@ class VideosTorrentCache extends AbstractVideoStaticFileCache <string> {
     if (file.getVideo().isOwned()) throw new Error('Cannot load remote file of owned video.')
 
     // Used to fetch the path
-    const video = await VideoModel.loadAndPopulateAccountAndServerAndTags(file.getVideo().id)
+    const video = await VideoModel.loadFull(file.getVideo().id)
     if (!video) return undefined
 
     const remoteUrl = file.getRemoteTorrentUrl(video)