aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/video/video.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/server/models/video/video.ts b/server/models/video/video.ts
index c568075d8..9399712b8 100644
--- a/server/models/video/video.ts
+++ b/server/models/video/video.ts
@@ -785,9 +785,8 @@ export class VideoModel extends Model<Partial<AttributesOnly<VideoModel>>> {
785 785
786 // Do not wait video deletion because we could be in a transaction 786 // Do not wait video deletion because we could be in a transaction
787 Promise.all(tasks) 787 Promise.all(tasks)
788 .catch(err => { 788 .then(() => logger.info('Removed files of video %s.', instance.url))
789 logger.error('Some errors when removing files of video %s in before destroy hook.', instance.uuid, { err }) 789 .catch(err => logger.error('Some errors when removing files of video %s in before destroy hook.', instance.uuid, { err }))
790 })
791 790
792 return undefined 791 return undefined
793 } 792 }