aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/video-channel.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/models/video/video-channel.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/models/video/video-channel.ts')
-rw-r--r--server/models/video/video-channel.ts4
1 files changed, 2 insertions, 2 deletions
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) {
178 }) 178 })
179} 179}
180 180
181function afterDestroy (videoChannel: VideoChannelInstance, options: { transaction: Sequelize.Transaction }) { 181function afterDestroy (videoChannel: VideoChannelInstance) {
182 if (videoChannel.isOwned()) { 182 if (videoChannel.isOwned()) {
183 const removeVideoChannelToFriendsParams = { 183 const removeVideoChannelToFriendsParams = {
184 uuid: videoChannel.uuid 184 uuid: videoChannel.uuid
185 } 185 }
186 186
187 return removeVideoChannelToFriends(removeVideoChannelToFriendsParams, options.transaction) 187 return removeVideoChannelToFriends(removeVideoChannelToFriendsParams)
188 } 188 }
189 189
190 return undefined 190 return undefined