diff --git a/routes/videoRoutes.js b/routes/videoRoutes.js index c785206..a0253a7 100644 --- a/routes/videoRoutes.js +++ b/routes/videoRoutes.js @@ -270,7 +270,7 @@ router.get('/videos/file/:video_id', (req, res) => { if (video.status === 0) { return res.status(400).json({ error: 'Video not yet produced' }); } - const videoPath = video.video_path; + const videoPath = video.video_file; console.log('Video path:', videoPath); fs.access(videoPath, fs.constants.F_OK, (err) => { if (err) {