]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Server: fix update remote video
authorChocobozzz <florian.bigard@gmail.com>
Sun, 15 Jan 2017 21:22:41 +0000 (22:22 +0100)
committerChocobozzz <florian.bigard@gmail.com>
Sun, 15 Jan 2017 21:22:41 +0000 (22:22 +0100)
server/controllers/api/remote/videos.js

index 33b521c5f7f741693147e75c8e2bf8d5f76fca99..e8279fe2ed5b0e29a1e2b1e880521238a3115a3b 100644 (file)
@@ -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) {