From c66b0247a383ef8e2106c7b838c7c086837dfd83 Mon Sep 17 00:00:00 2001 From: André Araújo Date: Wed, 8 Mar 2017 16:01:35 -0300 Subject: [PATCH] Adiciona Async module on package.json --- Makefile | 2 +- package.json | 1 + routes/index.js | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6ba2d2c..a2ab21a 100755 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ SCRIPT_PATH_ETC := /etc/init.d/${SCRIPT_NAME} NPM := $(shell which npm) install: - @ sudo chmod -R 777 $$HOME/tmp/ + @ # @ sudo chmod -R 777 $$HOME/tmp/ @ npm install @ sudo npm install -g supervisor diff --git a/package.json b/package.json index e8e3c8f..85c3309 100755 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ }, "dependencies": { + "async": "1.0.0", "bluebird": "~3.4.6", "body-parser": "~1.13.2", "cookie-parser": "~1.3.5", diff --git a/routes/index.js b/routes/index.js index e347498..83b3ae6 100755 --- a/routes/index.js +++ b/routes/index.js @@ -882,12 +882,12 @@ router.post('/addsinal', upload.array('video', 2), function(req, res, next) { var log = "O arquivo de vídeo é inválido, ou ocorreu um erro durante a conversão\nDetalhes: " + stdout + stderr; log = log.trim(); - res.status(500).send(log.trim()); + res.status(500); callback(true, log); } else { - res.status(500); + res.status(200); return 0; } }); -- libgit2 0.21.2