From: Chocobozzz Date: Sun, 15 Jan 2017 21:22:41 +0000 (+0100) Subject: Server: fix update remote video X-Git-Tag: v0.0.1-alpha~563 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=fbc22d79361f6d80dac09cd235a29340983f1717;p=oweals%2Fpeertube.git Server: fix update remote video --- diff --git a/server/controllers/api/remote/videos.js b/server/controllers/api/remote/videos.js index 33b521c5f..e8279fe2e 100644 --- a/server/controllers/api/remote/videos.js +++ b/server/controllers/api/remote/videos.js @@ -172,11 +172,11 @@ function addRemoteVideo (videoToCreateData, fromPod, finalCallback) { // Handle retries on fail function updateRemoteVideoRetryWrapper (videoAttributesToUpdate, fromPod, finalCallback) { const options = { - arguments: [ fromPod, videoAttributesToUpdate ], + arguments: [ videoAttributesToUpdate, fromPod ], errorMessage: 'Cannot update the remote video with many retries' } - databaseUtils.retryWrapper(updateRemoteVideo, options, finalCallback) + databaseUtils.retryTransactionWrapper(updateRemoteVideo, options, finalCallback) } function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) {