diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 14:05:20 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2017-10-26 14:05:20 +0200 |
commit | 911238e343e1cccae349ff9c44bcffadb96fa393 (patch) | |
tree | d255f616cc4682f262ec47ce1e0a65478701dcc9 /server/models/video/video.ts | |
parent | 6cd44728bb49778d6697a0277773ae4fca478a26 (diff) | |
download | PeerTube-911238e343e1cccae349ff9c44bcffadb96fa393.tar.gz PeerTube-911238e343e1cccae349ff9c44bcffadb96fa393.tar.zst PeerTube-911238e343e1cccae349ff9c44bcffadb96fa393.zip |
Fix integrity issues with after destroy hook
Diffstat (limited to 'server/models/video/video.ts')
-rw-r--r-- | server/models/video/video.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts index ec14939c2..6c0db59f3 100644 --- a/server/models/video/video.ts +++ b/server/models/video/video.ts | |||
@@ -317,7 +317,7 @@ function associate (models) { | |||
317 | }) | 317 | }) |
318 | } | 318 | } |
319 | 319 | ||
320 | function afterDestroy (video: VideoInstance, options: { transaction: Sequelize.Transaction }) { | 320 | function afterDestroy (video: VideoInstance) { |
321 | const tasks = [] | 321 | const tasks = [] |
322 | 322 | ||
323 | tasks.push( | 323 | tasks.push( |
@@ -331,7 +331,7 @@ function afterDestroy (video: VideoInstance, options: { transaction: Sequelize.T | |||
331 | 331 | ||
332 | tasks.push( | 332 | tasks.push( |
333 | video.removePreview(), | 333 | video.removePreview(), |
334 | removeVideoToFriends(removeVideoToFriendsParams, options.transaction) | 334 | removeVideoToFriends(removeVideoToFriendsParams) |
335 | ) | 335 | ) |
336 | 336 | ||
337 | // Remove physical files and torrents | 337 | // Remove physical files and torrents |