Commit 7d9c54de7413c7fb8224fea16070f69c809bfa35
1 parent
fb34333b
Exists in
master
and in
1 other branch
Refactoring endpoints source code
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
endpoints/video_legenda.js
@@ -39,12 +39,12 @@ function init(req, res) { | @@ -39,12 +39,12 @@ function init(req, res) { | ||
39 | if (error) { console.log(error); return; } | 39 | if (error) { console.log(error); return; } |
40 | 40 | ||
41 | /* Move o vídeo submetido para a pasta com o seu ID correspondente */ | 41 | /* Move o vídeo submetido para a pasta com o seu ID correspondente */ |
42 | - fs.rename(req.files.video.path, properties.uploads_folder + properties.ID_FROM_BD + '/' + req.files.video.name, function(error) { | 42 | + fs.rename(req.files.video.path, '/home/libras/vlibras-api/uploads/' + properties.ID_FROM_BD + '/' + req.files.video.name, function(error) { |
43 | if (error) { console.log(error); } | 43 | if (error) { console.log(error); } |
44 | }); | 44 | }); |
45 | 45 | ||
46 | /* Move a legenda submetido para a pasta com o seu ID correspondente */ | 46 | /* Move a legenda submetido para a pasta com o seu ID correspondente */ |
47 | - fs.rename(req.files.legenda.path, properties.uploads_folder + properties.ID_FROM_BD + '/' + req.files.legenda.name, function(error) { | 47 | + fs.rename(req.files.legenda.path, '/home/libras/vlibras-api/uploads/' + properties.ID_FROM_BD + '/' + req.files.legenda.name, function(error) { |
48 | if (error) { console.log(error); } | 48 | if (error) { console.log(error); } |
49 | }); | 49 | }); |
50 | 50 |