aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/create-transcoding-job.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-09 15:04:36 +0200
committerChocobozzz <me@florianbigard.com>2019-08-09 15:04:36 +0200
commite2600d8b261994abbbeb1ff921edaefd267fc122 (patch)
treefb19495cb4ba502324a2318c83cd4936b956fc1c /scripts/create-transcoding-job.ts
parent5bb2eb5660c87700bc70fe82219c1a84e7c7b177 (diff)
downloadPeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.tar.gz
PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.tar.zst
PeerTube-e2600d8b261994abbbeb1ff921edaefd267fc122.zip
Add avatar to prune script
Diffstat (limited to 'scripts/create-transcoding-job.ts')
-rwxr-xr-xscripts/create-transcoding-job.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts
index 2b7cb5177..2eb872169 100755
--- a/scripts/create-transcoding-job.ts
+++ b/scripts/create-transcoding-job.ts
@@ -29,7 +29,7 @@ run()
29async function run () { 29async function run () {
30 await initDatabaseModels(true) 30 await initDatabaseModels(true)
31 31
32 const video = await VideoModel.loadByUUIDWithFile(program['video']) 32 const video = await VideoModel.loadByUUID(program['video'])
33 if (!video) throw new Error('Video not found.') 33 if (!video) throw new Error('Video not found.')
34 34
35 const dataInput: VideoTranscodingPayload = program.resolution !== undefined 35 const dataInput: VideoTranscodingPayload = program.resolution !== undefined