aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/activitypub/videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/activitypub/videos.ts')
-rw-r--r--server/lib/activitypub/videos.ts7
1 files changed, 1 insertions, 6 deletions
diff --git a/server/lib/activitypub/videos.ts b/server/lib/activitypub/videos.ts
index 7ec8ca193..a16828fda 100644
--- a/server/lib/activitypub/videos.ts
+++ b/server/lib/activitypub/videos.ts
@@ -228,12 +228,7 @@ async function getOrCreateAccountAndVideoAndChannel (videoObject: VideoTorrentOb
228 228
229 const channelActor = await getOrCreateVideoChannel(videoObject) 229 const channelActor = await getOrCreateVideoChannel(videoObject)
230 230
231 const options = { 231 const video = await retryTransactionWrapper(getOrCreateVideo, videoObject, channelActor)
232 arguments: [ videoObject, channelActor ],
233 errorMessage: 'Cannot insert the remote video with many retries.'
234 }
235
236 const video = await retryTransactionWrapper(getOrCreateVideo, options)
237 232
238 // Process outside the transaction because we could fetch remote data 233 // Process outside the transaction because we could fetch remote data
239 logger.info('Adding likes of video %s.', video.uuid) 234 logger.info('Adding likes of video %s.', video.uuid)