+ // Process outside the transaction because we could fetch remote data
+ logger.info('Adding likes of video %s.', video.uuid)
+ await crawlCollectionPage<string>(videoObject.likes, (items) => createRates(items, video, 'like'))
+
+ logger.info('Adding dislikes of video %s.', video.uuid)
+ await crawlCollectionPage<string>(videoObject.dislikes, (items) => createRates(items, video, 'dislike'))
+
+ logger.info('Adding shares of video %s.', video.uuid)
+ await crawlCollectionPage<string>(videoObject.shares, (items) => addVideoShares(items, video))
+
+ logger.info('Adding comments of video %s.', video.uuid)
+ await crawlCollectionPage<string>(videoObject.comments, (items) => addVideoComments(items, video))
+