aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/models
diff options
context:
space:
mode:
Diffstat (limited to 'server/models')
-rw-r--r--server/models/redundancy/video-redundancy.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.ts
index da1c6f4a7..2ebe23ef1 100644
--- a/server/models/redundancy/video-redundancy.ts
+++ b/server/models/redundancy/video-redundancy.ts
@@ -122,9 +122,13 @@ export class VideoRedundancyModel extends Model<VideoRedundancyModel> {
122 122
123 const videoFile = await VideoFileModel.loadWithVideo(instance.videoFileId) 123 const videoFile = await VideoFileModel.loadWithVideo(instance.videoFileId)
124 124
125 logger.info('Removing duplicated video file %s-%s.', videoFile.Video.uuid, videoFile.resolution) 125 const logIdentifier = `${videoFile.Video.uuid}-${videoFile.resolution}`
126 logger.info('Removing duplicated video file %s.', logIdentifier)
126 127
127 return videoFile.Video.removeFile(videoFile) 128 videoFile.Video.removeFile(videoFile)
129 .catch(err => logger.error('Cannot delete %s files.', logIdentifier, { err }))
130
131 return undefined
128 } 132 }
129 133
130 static async loadLocalByFileId (videoFileId: number) { 134 static async loadLocalByFileId (videoFileId: number) {