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/models/video/video-channel.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/models/video/video-channel.ts') diff --git a/server/models/video/video-channel.ts b/server/models/video/video-channel.ts index e469383e9..46c2db63f 100644 --- a/server/models/video/video-channel.ts +++ b/server/models/video/video-channel.ts @@ -178,13 +178,13 @@ function associate (models) { }) } -function afterDestroy (videoChannel: VideoChannelInstance, options: { transaction: Sequelize.Transaction }) { +function afterDestroy (videoChannel: VideoChannelInstance) { if (videoChannel.isOwned()) { const removeVideoChannelToFriendsParams = { uuid: videoChannel.uuid } - return removeVideoChannelToFriends(removeVideoChannelToFriendsParams, options.transaction) + return removeVideoChannelToFriends(removeVideoChannelToFriendsParams) } return undefined -- cgit v1.2.3