From e2e9feac7d968872c3e9a5baf48db4edafdf1d0e Mon Sep 17 00:00:00 2001 From: Alexander Abashkin Date: Wed, 25 May 2016 18:58:49 +0300 Subject: [PATCH] Add body to callbacks It should be very useful. --- lib/jira.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/jira.js b/lib/jira.js index 190e2661..c4f08545 100644 --- a/lib/jira.js +++ b/lib/jira.js @@ -1648,7 +1648,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor } if (response.statusCode === 201) { - callback(null, "Success"); + callback(null, "Success", body); return; } @@ -1721,7 +1721,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor } if (response.statusCode === 201) { - callback(null, "Success"); + callback(null, "Success", body); return; } if (response.statusCode === 400) { @@ -1990,7 +1990,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor } if (response.statusCode === 204) { - callback(null, "Success"); + callback(null, "Success", body); return; }