diff options
Diffstat (limited to 'server/lib/files-cache/videos-preview-cache.ts')
-rw-r--r-- | server/lib/files-cache/videos-preview-cache.ts | 2 |
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() } |