diff --git a/routes/videoRoutes.js b/routes/videoRoutes.js index a7c2f53..2ef8ec0 100644 --- a/routes/videoRoutes.js +++ b/routes/videoRoutes.js @@ -321,12 +321,12 @@ router.post('/videos/render/:video_id', (req, res) => { const videoFile = videoManager.createVideoWithList(project_id, pathList); console.log('Video file:', videoFile); - try { + try { videoManager.updateVideoFile(videoId, videoFile); - } catch (err) { + } catch (err) { console.error('Error updating video file:', err); res.status(500).json({ error: 'Error updating video file' }); - } + } }).catch(err => { console.error('Error getting path list:', err); res.status(500).json({ error: 'Error getting path list' });