Commit aaa1c3b9b774cbf8f3c167966be9f5b97f713d62

Authored by Wesnydy Ribeiro
1 parent 82670e86

Remove double quotes from response

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
translate-api/controllers/translate.js
@@ -25,7 +25,7 @@ exports.translate = function(req, res, next) { @@ -25,7 +25,7 @@ exports.translate = function(req, res, next) {
25 amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) { 25 amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) {
26 if (err) 26 if (err)
27 return error.internalError('An internal communication error has occurred.', next); 27 return error.internalError('An internal communication error has occurred.', next);
28 - res.status(200).send(message); 28 + res.status(200).send(message.replace(/\"/g, ""));
29 }); 29 });
30 }); 30 });
31 }; 31 };
@@ -44,7 +44,7 @@ exports.translateURL = function(req, res, next) { @@ -44,7 +44,7 @@ exports.translateURL = function(req, res, next) {
44 amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) { 44 amqp.receiveFromQueue(id, 'translations', false, res, function(err, message) {
45 if (err) 45 if (err)
46 return error.internalError('An internal communication error has occurred.', next); 46 return error.internalError('An internal communication error has occurred.', next);
47 - res.status(200).send(message); 47 + res.status(200).send(message.replace(/\"/g, ""));
48 }); 48 });
49 }); 49 });
50 }; 50 };