aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/remote
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-01-15 22:22:41 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-01-15 22:22:41 +0100
commitfbc22d79361f6d80dac09cd235a29340983f1717 (patch)
treee471c1f76b05e0e4997fb3f9059e92ac26ac1006 /server/controllers/api/remote
parent4df023f2d4e4ea93d3fbc6010f0460511ba45140 (diff)
downloadPeerTube-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.js4
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
173function updateRemoteVideoRetryWrapper (videoAttributesToUpdate, fromPod, finalCallback) { 173function 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
182function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) { 182function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) {