X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fvalidators%2Fredundancy.ts;h=c72ab78b23fa2c253a83956a51ae4e8e6d37b89b;hb=46f8d69b4e58a3006c32b2e0d97b9262fd30fd6b;hp=d91b475743c3576ab0f3050640fa1a6850c52a40;hpb=8b917537af2217ad0c87d49fd2ffa693d46a499c;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/validators/redundancy.ts b/server/middlewares/validators/redundancy.ts index d91b47574..c72ab78b2 100644 --- a/server/middlewares/validators/redundancy.ts +++ b/server/middlewares/validators/redundancy.ts @@ -37,7 +37,7 @@ const videoRedundancyGetValidator = [ if (!videoFile) return res.status(404).json({ error: 'Video file not found.' }) res.locals.videoFile = videoFile - const videoRedundancy = await VideoRedundancyModel.loadByFileId(videoFile.id) + const videoRedundancy = await VideoRedundancyModel.loadLocalByFileId(videoFile.id) if (!videoRedundancy)return res.status(404).json({ error: 'Video redundancy not found.' }) res.locals.videoRedundancy = videoRedundancy