diff options
author | Chocobozzz <me@florianbigard.com> | 2019-08-09 15:04:36 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-08-09 15:04:36 +0200 |
commit | e2600d8b261994abbbeb1ff921edaefd267fc122 (patch) | |
tree | fb19495cb4ba502324a2318c83cd4936b956fc1c /scripts/create-import-video-file-job.ts | |
parent | 5bb2eb5660c87700bc70fe82219c1a84e7c7b177 (diff) | |
download | PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.tar.gz PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.tar.zst PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.zip |
Add avatar to prune script
Diffstat (limited to 'scripts/create-import-video-file-job.ts')
-rw-r--r-- | scripts/create-import-video-file-job.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-import-video-file-job.ts b/scripts/create-import-video-file-job.ts index c8c6c6429..2b636014a 100644 --- a/scripts/create-import-video-file-job.ts +++ b/scripts/create-import-video-file-job.ts | |||
@@ -25,7 +25,7 @@ run() | |||
25 | async function run () { | 25 | async function run () { |
26 | await initDatabaseModels(true) | 26 | await initDatabaseModels(true) |
27 | 27 | ||
28 | const video = await VideoModel.loadByUUIDWithFile(program['video']) | 28 | const video = await VideoModel.loadByUUID(program['video']) |
29 | if (!video) throw new Error('Video not found.') | 29 | if (!video) throw new Error('Video not found.') |
30 | if (video.isOwned() === false) throw new Error('Cannot import files of a non owned video.') | 30 | if (video.isOwned() === false) throw new Error('Cannot import files of a non owned video.') |
31 | 31 | ||