From 3be5adc66dfcc179b93aaa6fc55fe0da440bf1c6 Mon Sep 17 00:00:00 2001 From: Fernando Brito Date: Sat, 18 Oct 2014 07:41:20 -0300 Subject: [PATCH] Adiciona ID nos retornos do callback --- helpers/core.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/helpers/core.js b/helpers/core.js index 0a989f8..8bde42c 100644 --- a/helpers/core.js +++ b/helpers/core.js @@ -27,7 +27,7 @@ function call(id, command_line, req, res) { } // Se o core executou normal - res.send(200, { 'response' : 'http://' + properties.SERVER_IP + ':' + properties.port + '/' + id + '.flv' }); + res.send(200, { 'response' : 'http://' + properties.SERVER_IP + ':' + properties.port + '/' + id + '.flv', 'id' : id }); }); // Se a chamada deu erro @@ -47,9 +47,9 @@ function call(id, command_line, req, res) { // Se o core executou com erro if (code === 0) { - var data = querystring.stringify({ 'response' : 'http://' + properties.SERVER_IP + ':' + properties.port + '/' + id + '.mp4' }); + var data = querystring.stringify({ 'response' : 'http://' + properties.SERVER_IP + ':' + properties.port + '/' + id + '.mp4', 'id' : id }); } else { - var data = querystring.stringify({ 'error': 'Erro no Core', 'code': code }); + var data = querystring.stringify({ 'error': 'Erro no Core', 'code': code, 'id' : id }); } // Chama o callback -- libgit2 0.21.2