diff options
Diffstat (limited to 'scripts/prune-storage.ts')
-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 0f2d1320e..58d24816e 100755 --- a/scripts/prune-storage.ts +++ b/scripts/prune-storage.ts | |||
@@ -89,7 +89,7 @@ async function pruneDirectory (directory: string, existFun: ExistFun) { | |||
89 | function doesVideoExist (keepOnlyOwned: boolean) { | 89 | function doesVideoExist (keepOnlyOwned: boolean) { |
90 | return async (file: string) => { | 90 | return async (file: string) => { |
91 | const uuid = getUUIDFromFilename(file) | 91 | const uuid = getUUIDFromFilename(file) |
92 | const video = await VideoModel.loadByUUID(uuid) | 92 | const video = await VideoModel.load(uuid) |
93 | 93 | ||
94 | return video && (keepOnlyOwned === false || video.isOwned()) | 94 | return video && (keepOnlyOwned === false || video.isOwned()) |
95 | } | 95 | } |