]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/video-state.ts
Rename video full loading
[github/Chocobozzz/PeerTube.git] / server / lib / video-state.ts
index ae2725d650c6f2c90a7d6cdacc3133fe6642786f..b4e3831e5d4c03b89c1b554eb2f41ce53295300a 100644 (file)
@@ -43,7 +43,7 @@ function moveToNextState (options: {
 
   return sequelizeTypescript.transaction(async t => {
     // Maybe the video changed in database, refresh it
-    const videoDatabase = await VideoModel.loadAndPopulateAccountAndServerAndTags(video.uuid, t)
+    const videoDatabase = await VideoModel.loadFull(video.uuid, t)
     // Video does not exist anymore
     if (!videoDatabase) return undefined