Optimize SQL requests of watch page API endpoints
[oweals/peertube.git] / scripts / create-transcoding-job.ts
index 3ea30f98e642701d5bf85e60387308c1c0fa88c1..7e5b687bbc2c22520fa5969d79ea29d2c71e5b32 100755 (executable)
@@ -28,7 +28,7 @@ run()
 async function run () {
   await initDatabaseModels(true)
 
-  const video = await VideoModel.loadByUUID(program['video'])
+  const video = await VideoModel.loadByUUIDWithFile(program['video'])
   if (!video) throw new Error('Video not found.')
 
   const dataInput = {