aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models/video/author.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/author.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/author.ts')
-rw-r--r--server/models/video/author.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/author.ts b/server/models/video/author.ts
index 6f27ea7bd..43f84c3ea 100644
--- a/server/models/video/author.ts
+++ b/server/models/video/author.ts
@@ -107,13 +107,13 @@ function associate (models) {
107 }) 107 })
108} 108}
109 109
110function afterDestroy (author: AuthorInstance, options: { transaction: Sequelize.Transaction }) { 110function afterDestroy (author: AuthorInstance) {
111 if (author.isOwned()) { 111 if (author.isOwned()) {
112 const removeVideoAuthorToFriendsParams = { 112 const removeVideoAuthorToFriendsParams = {
113 uuid: author.uuid 113 uuid: author.uuid
114 } 114 }
115 115
116 return removeVideoAuthorToFriends(removeVideoAuthorToFriendsParams, options.transaction) 116 return removeVideoAuthorToFriends(removeVideoAuthorToFriendsParams)
117 } 117 }
118 118
119 return undefined 119 return undefined