]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/videos.ts
Upgrade sequelize to v6
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / videos.ts
index b15d5da1c1862d9fb17ff2626e1d18effca5f551..cb462e258b83ee9efe6c6ea3e7f9c67013d0edea 100644 (file)
@@ -352,6 +352,9 @@ async function updateVideoFromAP (options: {
       video.views = videoData.views
       video.isLive = videoData.isLive
 
+      // Ensures we update the updated video attribute
+      video.changed('updatedAt', true)
+
       const videoUpdated = await video.save(sequelizeOptions) as MVideoFullLight
 
       if (thumbnailModel) await videoUpdated.addAndSaveThumbnail(thumbnailModel, t)