aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-09-12 14:17:46 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-09-12 14:17:46 +0200
commit91f6f169b1110eeae6ebf5c387f4204b0d07703c (patch)
treecba01c954c311b8b5296222994a64da58c17789e /server/lib
parent6d33593a0829a7f041127d50d4c455456550a47f (diff)
downloadPeerTube-91f6f169b1110eeae6ebf5c387f4204b0d07703c.tar.gz
PeerTube-91f6f169b1110eeae6ebf5c387f4204b0d07703c.tar.zst
PeerTube-91f6f169b1110eeae6ebf5c387f4204b0d07703c.zip
Fix concurrency error when deleting a video
Diffstat (limited to 'server/lib')
-rw-r--r--server/lib/friends.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/lib/friends.ts b/server/lib/friends.ts
index 3f0ce3f33..ea9ddbe8d 100644
--- a/server/lib/friends.ts
+++ b/server/lib/friends.ts
@@ -80,12 +80,12 @@ function updateVideoToFriends (videoData: RemoteVideoUpdateData, transaction: Se
80 return createRequest(options) 80 return createRequest(options)
81} 81}
82 82
83function removeVideoToFriends (videoParams: RemoteVideoRemoveData) { 83function removeVideoToFriends (videoParams: RemoteVideoRemoveData, transaction: Sequelize.Transaction) {
84 const options = { 84 const options = {
85 type: ENDPOINT_ACTIONS.REMOVE, 85 type: ENDPOINT_ACTIONS.REMOVE,
86 endpoint: REQUEST_ENDPOINTS.VIDEOS, 86 endpoint: REQUEST_ENDPOINTS.VIDEOS,
87 data: videoParams, 87 data: videoParams,
88 transaction: null 88 transaction
89 } 89 }
90 return createRequest(options) 90 return createRequest(options)
91} 91}