From fbc22d79361f6d80dac09cd235a29340983f1717 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Sun, 15 Jan 2017 22:22:41 +0100 Subject: Server: fix update remote video --- server/controllers/api/remote/videos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- cgit v1.2.3