ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't block when removing redundancy files
Chocobozzzd0ae9490a3ff
diff --git a/server/models/redundancy/video-redundancy.ts b/server/models/redundancy/video-redundancy.tsindex da1c6f4a7f..2ebe23ef16 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> {const videoFile = await VideoFileModel.loadWithVideo(instance.videoFileId)- logger.info('Removing duplicated video file %s-%s.', videoFile.Video.uuid, videoFile.resolution)+ const logIdentifier = `${videoFile.Video.uuid}-${videoFile.resolution}`+ logger.info('Removing duplicated video file %s.', logIdentifier)- return videoFile.Video.removeFile(videoFile)+ videoFile.Video.removeFile(videoFile)+ .catch(err => logger.error('Cannot delete %s files.', logIdentifier, { err }))++ return undefined}static async loadLocalByFileId (videoFileId: number) {