Add avatar to prune script
[oweals/peertube.git] / scripts / create-transcoding-job.ts
index 2b7cb5177e2e4c0ec790a3a97010a81d023baeff..2eb872169f00cfad6a07737ba220be51d5b28523 100755 (executable)
@@ -29,7 +29,7 @@ run()
 async function run () {
   await initDatabaseModels(true)
 
-  const video = await VideoModel.loadByUUIDWithFile(program['video'])
+  const video = await VideoModel.loadByUUID(program['video'])
   if (!video) throw new Error('Video not found.')
 
   const dataInput: VideoTranscodingPayload = program.resolution !== undefined