Commit c66b0247a383ef8e2106c7b838c7c086837dfd83
1 parent
1e01b836
Exists in
master
Adiciona Async module on package.json
Showing
3 changed files
with
4 additions
and
3 deletions
Show diff stats
Makefile
package.json
routes/index.js
... | ... | @@ -882,12 +882,12 @@ router.post('/addsinal', upload.array('video', 2), function(req, res, next) |
882 | 882 | { |
883 | 883 | var log = "O arquivo de vídeo é inválido, ou ocorreu um erro durante a conversão\nDetalhes: " + stdout + stderr; |
884 | 884 | log = log.trim(); |
885 | - res.status(500).send(log.trim()); | |
885 | + res.status(500); | |
886 | 886 | callback(true, log); |
887 | 887 | } |
888 | 888 | else |
889 | 889 | { |
890 | - res.status(500); | |
890 | + res.status(200); | |
891 | 891 | return 0; |
892 | 892 | } |
893 | 893 | }); | ... | ... |