]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/create-move-video-storage-job.ts
Merge branch 'release/4.3.0' into develop
[github/Chocobozzz/PeerTube.git] / scripts / create-move-video-storage-job.ts
index 18629aa27dad54f94a963a7866657542f067220e..13ba3c0b77b76e17feb42092ef5c5d366bafb56d 100644 (file)
@@ -37,7 +37,7 @@ run()
 async function run () {
   await initDatabaseModels(true)
 
-  JobQueue.Instance.init(true)
+  JobQueue.Instance.init()
 
   let ids: number[] = []
 
@@ -70,7 +70,7 @@ async function run () {
   }
 
   for (const id of ids) {
-    const videoFull = await VideoModel.loadAndPopulateAccountAndServerAndTags(id)
+    const videoFull = await VideoModel.loadFull(id)
 
     const files = videoFull.VideoFiles || []
     const hls = videoFull.getHLSPlaylist()