aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/api/remote
diff options
context:
space:
mode:
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) {