Server: fix update remote video

pull/30/head
Chocobozzz 2017-01-15 22:22:41 +01:00
parent 4df023f2d4
commit fbc22d7936
1 changed files with 2 additions and 2 deletions

View File

@ -172,11 +172,11 @@ function addRemoteVideo (videoToCreateData, fromPod, finalCallback) {
// Handle retries on fail // Handle retries on fail
function updateRemoteVideoRetryWrapper (videoAttributesToUpdate, fromPod, finalCallback) { function updateRemoteVideoRetryWrapper (videoAttributesToUpdate, fromPod, finalCallback) {
const options = { const options = {
arguments: [ fromPod, videoAttributesToUpdate ], arguments: [ videoAttributesToUpdate, fromPod ],
errorMessage: 'Cannot update the remote video with many retries' errorMessage: 'Cannot update the remote video with many retries'
} }
databaseUtils.retryWrapper(updateRemoteVideo, options, finalCallback) databaseUtils.retryTransactionWrapper(updateRemoteVideo, options, finalCallback)
} }
function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) { function updateRemoteVideo (videoAttributesToUpdate, fromPod, finalCallback) {