diff options
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/prune-storage.ts | 2 |
1 files changed, 1 insertions, 1 deletions
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) { | |||
95 | 95 | ||
96 | function doesThumbnailExist (keepOnlyOwned: boolean, type: ThumbnailType) { | 96 | function doesThumbnailExist (keepOnlyOwned: boolean, type: ThumbnailType) { |
97 | return async (file: string) => { | 97 | return async (file: string) => { |
98 | const thumbnail = await ThumbnailModel.loadWithVideoByName(file, type) | 98 | const thumbnail = await ThumbnailModel.loadByFilename(file, type) |
99 | if (!thumbnail) return false | 99 | if (!thumbnail) return false |
100 | 100 | ||
101 | if (keepOnlyOwned) { | 101 | if (keepOnlyOwned) { |