From e2600d8b261994abbbeb1ff921edaefd267fc122 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 9 Aug 2019 15:04:36 +0200 Subject: Add avatar to prune script --- server/lib/files-cache/videos-preview-cache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/lib/files-cache/videos-preview-cache.ts') 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 { } 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() } -- cgit v1.2.3