})
}
-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