From 911238e343e1cccae349ff9c44bcffadb96fa393 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 26 Oct 2017 14:05:20 +0200 Subject: Fix integrity issues with after destroy hook --- server/lib/friends.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/lib') 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 return createRequest(options) } -function removeVideoToFriends (videoParams: RemoteVideoRemoveData, transaction: Sequelize.Transaction) { +function removeVideoToFriends (videoParams: RemoteVideoRemoveData, transaction?: Sequelize.Transaction) { const options = { type: ENDPOINT_ACTIONS.REMOVE_VIDEO, endpoint: REQUEST_ENDPOINTS.VIDEOS, @@ -106,7 +106,7 @@ function addVideoAuthorToFriends (authorData: RemoteVideoAuthorCreateData, trans return createRequest(options) } -function removeVideoAuthorToFriends (authorData: RemoteVideoAuthorRemoveData, transaction: Sequelize.Transaction) { +function removeVideoAuthorToFriends (authorData: RemoteVideoAuthorRemoveData, transaction?: Sequelize.Transaction) { const options = { type: ENDPOINT_ACTIONS.REMOVE_AUTHOR, endpoint: REQUEST_ENDPOINTS.VIDEOS, @@ -136,7 +136,7 @@ function updateVideoChannelToFriends (videoChannelData: RemoteVideoChannelUpdate return createRequest(options) } -function removeVideoChannelToFriends (videoChannelParams: RemoteVideoChannelRemoveData, transaction: Sequelize.Transaction) { +function removeVideoChannelToFriends (videoChannelParams: RemoteVideoChannelRemoveData, transaction?: Sequelize.Transaction) { const options = { type: ENDPOINT_ACTIONS.REMOVE_CHANNEL, endpoint: REQUEST_ENDPOINTS.VIDEOS, -- cgit v1.2.3