aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/friends.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-26 14:05:20 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-26 14:05:20 +0200
commit911238e343e1cccae349ff9c44bcffadb96fa393 (patch)
treed255f616cc4682f262ec47ce1e0a65478701dcc9 /server/lib/friends.ts
parent6cd44728bb49778d6697a0277773ae4fca478a26 (diff)
downloadPeerTube-911238e343e1cccae349ff9c44bcffadb96fa393.tar.gz
PeerTube-911238e343e1cccae349ff9c44bcffadb96fa393.tar.zst
PeerTube-911238e343e1cccae349ff9c44bcffadb96fa393.zip
Fix integrity issues with after destroy hook
Diffstat (limited to 'server/lib/friends.ts')
-rw-r--r--server/lib/friends.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/lib/friends.ts b/server/lib/friends.ts
index a33432dc1..55cbb55b9 100644
--- a/server/lib/friends.ts
+++ b/server/lib/friends.ts
@@ -86,7 +86,7 @@ function updateVideoToFriends (videoData: RemoteVideoUpdateData, transaction: Se
86 return createRequest(options) 86 return createRequest(options)
87} 87}
88 88
89function removeVideoToFriends (videoParams: RemoteVideoRemoveData, transaction: Sequelize.Transaction) { 89function removeVideoToFriends (videoParams: RemoteVideoRemoveData, transaction?: Sequelize.Transaction) {
90 const options = { 90 const options = {
91 type: ENDPOINT_ACTIONS.REMOVE_VIDEO, 91 type: ENDPOINT_ACTIONS.REMOVE_VIDEO,
92 endpoint: REQUEST_ENDPOINTS.VIDEOS, 92 endpoint: REQUEST_ENDPOINTS.VIDEOS,
@@ -106,7 +106,7 @@ function addVideoAuthorToFriends (authorData: RemoteVideoAuthorCreateData, trans
106 return createRequest(options) 106 return createRequest(options)
107} 107}
108 108
109function removeVideoAuthorToFriends (authorData: RemoteVideoAuthorRemoveData, transaction: Sequelize.Transaction) { 109function removeVideoAuthorToFriends (authorData: RemoteVideoAuthorRemoveData, transaction?: Sequelize.Transaction) {
110 const options = { 110 const options = {
111 type: ENDPOINT_ACTIONS.REMOVE_AUTHOR, 111 type: ENDPOINT_ACTIONS.REMOVE_AUTHOR,
112 endpoint: REQUEST_ENDPOINTS.VIDEOS, 112 endpoint: REQUEST_ENDPOINTS.VIDEOS,
@@ -136,7 +136,7 @@ function updateVideoChannelToFriends (videoChannelData: RemoteVideoChannelUpdate
136 return createRequest(options) 136 return createRequest(options)
137} 137}
138 138
139function removeVideoChannelToFriends (videoChannelParams: RemoteVideoChannelRemoveData, transaction: Sequelize.Transaction) { 139function removeVideoChannelToFriends (videoChannelParams: RemoteVideoChannelRemoveData, transaction?: Sequelize.Transaction) {
140 const options = { 140 const options = {
141 type: ENDPOINT_ACTIONS.REMOVE_CHANNEL, 141 type: ENDPOINT_ACTIONS.REMOVE_CHANNEL,
142 endpoint: REQUEST_ENDPOINTS.VIDEOS, 142 endpoint: REQUEST_ENDPOINTS.VIDEOS,