aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/prune-storage.ts2
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
96function doesThumbnailExist (keepOnlyOwned: boolean, type: ThumbnailType) { 96function 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) {