diff options
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 |