]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/cache/videos-preview-cache.ts
Rename Pod -> Server
[github/Chocobozzz/PeerTube.git] / server / lib / cache / videos-preview-cache.ts
index 776f647a048ba1e45ee7ec74edd8da8e9d74ed59..0570f51e8ec624f821f2a7db000a859e9e14c222 100644 (file)
@@ -42,7 +42,7 @@ class VideosPreviewCache {
   }
 
   private async loadPreviews (key: string) {
-    const video = await db.Video.loadByUUIDAndPopulateAccountAndPodAndTags(key)
+    const video = await db.Video.loadByUUIDAndPopulateAccountAndServerAndTags(key)
     if (!video) return undefined
 
     if (video.isOwned()) return join(CONFIG.STORAGE.PREVIEWS_DIR, video.getPreviewName())