]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/lib/activitypub/videos.ts
Improve create import file job
[github/Chocobozzz/PeerTube.git] / server / lib / activitypub / videos.ts
index be6794cef93620110ae2b7ab76e21ec214e9f90a..907f7e11e273e55a559af20f7f9762de0498846f 100644 (file)
@@ -93,6 +93,7 @@ async function videoActivityObjectToDBAttributes (videoChannel: VideoChannelMode
     channelId: videoChannel.id,
     duration: parseInt(duration, 10),
     createdAt: new Date(videoObject.published),
+    publishedAt: new Date(videoObject.published),
     // FIXME: updatedAt does not seems to be considered by Sequelize
     updatedAt: new Date(videoObject.updated),
     views: videoObject.views,