})
}
-function afterDestroy (video: VideoInstance, options: { transaction: Sequelize.Transaction }) {
+function afterDestroy (video: VideoInstance) {
const tasks = []
tasks.push(
tasks.push(
video.removePreview(),
- removeVideoToFriends(removeVideoToFriendsParams, options.transaction)
+ removeVideoToFriends(removeVideoToFriendsParams)
)
// Remove physical files and torrents
return Promise.all(tasks)
.catch(err => {
- logger.error('Some errors when removing files of video %d in after destroy hook.', video.uuid, err)
+ logger.error('Some errors when removing files of video %s in after destroy hook.', video.uuid, err)
})
}