From a35a22797c99f17924347da9a226068c3dbe4787 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 16 Feb 2021 08:50:40 +0100 Subject: Remove previous thumbnail if needed --- scripts/prune-storage.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/prune-storage.ts') diff --git a/scripts/prune-storage.ts b/scripts/prune-storage.ts index 788d97997..dcb1fcf90 100755 --- a/scripts/prune-storage.ts +++ b/scripts/prune-storage.ts @@ -95,7 +95,7 @@ function doesVideoExist (keepOnlyOwned: boolean) { function doesThumbnailExist (keepOnlyOwned: boolean, type: ThumbnailType) { return async (file: string) => { - const thumbnail = await ThumbnailModel.loadWithVideoByName(file, type) + const thumbnail = await ThumbnailModel.loadByFilename(file, type) if (!thumbnail) return false if (keepOnlyOwned) { -- cgit v1.2.3