]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/migrations/peertube-4.0.ts
Rename video full loading
[github/Chocobozzz/PeerTube.git] / scripts / migrations / peertube-4.0.ts
index 64cf4547435b011d090afd6ba573c26bf8d25515..9e5ca60d40b580bf752e44859221fcf5f193a775 100644 (file)
@@ -97,7 +97,7 @@ async function processVideo (videoId: number) {
   // Everything worked, we can save the playlist now
   await playlist.save()
 
-  const allVideo = await VideoModel.loadAndPopulateAccountAndServerAndTags(video.id)
+  const allVideo = await VideoModel.loadFull(video.id)
   await federateVideoIfNeeded(allVideo, false)
 
   console.log(`Successfully moved HLS files of ${video.name}.`)