diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-01-15 22:22:41 +0100 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-01-15 22:22:41 +0100 |
commit | fbc22d79361f6d80dac09cd235a29340983f1717 (patch) | |
tree | e471c1f76b05e0e4997fb3f9059e92ac26ac1006 /server/controllers/api/remote | |
parent | 4df023f2d4e4ea93d3fbc6010f0460511ba45140 (diff) | |
download | PeerTube-fbc22d79361f6d80dac09cd235a29340983f1717.tar.gz PeerTube-fbc22d79361f6d80dac09cd235a29340983f1717.tar.zst PeerTube-fbc22d79361f6d80dac09cd235a29340983f1717.zip |
Server: fix update remote video
Diffstat (limited to 'server/controllers/api/remote')
-rw-r--r-- | server/controllers/api/remote/videos.js | 4 |
1 files 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) { | |||
172 | // Handle retries on fail | 172 | // Handle retries on fail |
173 | function updateRemoteVideoRetryWrapper (videoAttributesToUpdate, fromPod, finalCallback) { | 173 | function updateRemoteVideoRetryWrapper (videoAttributesToUpdate, fromPod, finalCallback) { |
174 | const options = { | 174 | const options = { |
175 | arguments: [ fromPod, videoAttributesToUpdate ], | 175 | arguments: [ videoAttributesToUpdate, fromPod ], |
176 | errorMessage: 'Cannot update the remote video with many retries' | 176 | errorMessage: 'Cannot update the remote video with many retries' |
177 | } | 177 | } |
178 | 178 | ||
179 | databaseUtils.retryWrapper(updateRemoteVideo, options, finalCallback) | 179 | databaseUtils.retryTransactionWrapper(updateRemoteVideo, options, finalCallback) |
180 | } | 180 | } |
181 | 181 | ||
182 | function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) { | 182 | function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) { |