aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-09 15:04:36 +0200
committerChocobozzz <me@florianbigard.com>2019-08-09 15:04:36 +0200
commite2600d8b261994abbbeb1ff921edaefd267fc122 (patch)
treefb19495cb4ba502324a2318c83cd4936b956fc1c /server/lib
parent5bb2eb5660c87700bc70fe82219c1a84e7c7b177 (diff)
downloadPeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.tar.gz
PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.tar.zst
PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.zip
Add avatar to prune script
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/files-cache/videos-preview-cache.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/files-cache/videos-preview-cache.ts b/server/lib/files-cache/videos-preview-cache.ts
index a68619d07..3da6bb138 100644
--- a/server/lib/files-cache/videos-preview-cache.ts
+++ b/server/lib/files-cache/videos-preview-cache.ts
@@ -18,7 +18,7 @@ class VideosPreviewCache extends AbstractVideoStaticFileCache <string> {
18 } 18 }
19 19
20 async getFilePathImpl (videoUUID: string) { 20 async getFilePathImpl (videoUUID: string) {
21 const video = await VideoModel.loadByUUIDWithFile(videoUUID) 21 const video = await VideoModel.loadByUUID(videoUUID)
22 if (!video) return undefined 22 if (!video) return undefined
23 23
24 if (video.isOwned()) return { isOwned: true, path: video.getPreview().getPath() } 24 if (video.isOwned()) return { isOwned: true, path: video.getPreview().getPath() }