X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=scripts%2Fmigrations%2Fpeertube-4.0.ts;h=b0891c2e638564051624e6521e8776992ced93d1;hb=2296dfd4dbdd6e00292ef441861908aacec4646f;hp=64cf4547435b011d090afd6ba573c26bf8d25515;hpb=f8360396ffabd2f95e9ece9c5755173bae0114b6;p=github%2FChocobozzz%2FPeerTube.git diff --git a/scripts/migrations/peertube-4.0.ts b/scripts/migrations/peertube-4.0.ts index 64cf45474..b0891c2e6 100644 --- a/scripts/migrations/peertube-4.0.ts +++ b/scripts/migrations/peertube-4.0.ts @@ -21,7 +21,7 @@ async function run () { await initDatabaseModels(true) - JobQueue.Instance.init(true) + JobQueue.Instance.init() const ids = await VideoModel.listLocalIds() @@ -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}.`)