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 572283868..b00f20934 100755 --- a/scripts/prune-storage.ts +++ b/scripts/prune-storage.ts | |||
@@ -56,7 +56,7 @@ async function pruneDirectory (directory: string) { | |||
56 | const uuid = getUUIDFromFilename(file) | 56 | const uuid = getUUIDFromFilename(file) |
57 | let video: VideoModel | 57 | let video: VideoModel |
58 | 58 | ||
59 | if (uuid) video = await VideoModel.loadByUUID(uuid) | 59 | if (uuid) video = await VideoModel.loadByUUIDWithFile(uuid) |
60 | 60 | ||
61 | if (!uuid || !video) toDelete.push(join(directory, file)) | 61 | if (!uuid || !video) toDelete.push(join(directory, file)) |
62 | } | 62 | } |