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
@@ -5,7 +5,7 @@ SCRIPT_PATH_ETC := /etc/init.d/${SCRIPT_NAME} | @@ -5,7 +5,7 @@ SCRIPT_PATH_ETC := /etc/init.d/${SCRIPT_NAME} | ||
5 | NPM := $(shell which npm) | 5 | NPM := $(shell which npm) |
6 | 6 | ||
7 | install: | 7 | install: |
8 | - @ sudo chmod -R 777 $$HOME/tmp/ | 8 | + @ # @ sudo chmod -R 777 $$HOME/tmp/ |
9 | @ npm install | 9 | @ npm install |
10 | @ sudo npm install -g supervisor | 10 | @ sudo npm install -g supervisor |
11 | 11 |
package.json
routes/index.js
@@ -882,12 +882,12 @@ router.post('/addsinal', upload.array('video', 2), function(req, res, next) | @@ -882,12 +882,12 @@ router.post('/addsinal', upload.array('video', 2), function(req, res, next) | ||
882 | { | 882 | { |
883 | var log = "O arquivo de vídeo é inválido, ou ocorreu um erro durante a conversão\nDetalhes: " + stdout + stderr; | 883 | var log = "O arquivo de vídeo é inválido, ou ocorreu um erro durante a conversão\nDetalhes: " + stdout + stderr; |
884 | log = log.trim(); | 884 | log = log.trim(); |
885 | - res.status(500).send(log.trim()); | 885 | + res.status(500); |
886 | callback(true, log); | 886 | callback(true, log); |
887 | } | 887 | } |
888 | else | 888 | else |
889 | { | 889 | { |
890 | - res.status(500); | 890 | + res.status(200); |
891 | return 0; | 891 | return 0; |
892 | } | 892 | } |
893 | }); | 893 | }); |