diff --git a/lib/connection/connection.js b/lib/connection/connection.js index ef0a57afe..16d4b5d5d 100644 --- a/lib/connection/connection.js +++ b/lib/connection/connection.js @@ -448,7 +448,7 @@ function Connection(context) // Get the response containing the query status const response = await services.sf.requestAsync(options); - return response['body']; + return response['data']; } /** diff --git a/lib/http/base.js b/lib/http/base.js index f3a2968d1..190e1ca5a 100644 --- a/lib/http/base.js +++ b/lib/http/base.js @@ -92,7 +92,7 @@ HttpClient.prototype.requestAsync = async function (options) response['data'] = JSON.parse(response['data']); } - return normalizeResponse(response); + return response; }; /** diff --git a/test/unit/mock/mock_http_client.js b/test/unit/mock/mock_http_client.js index e75b9782b..f9cba1f0b 100644 --- a/test/unit/mock/mock_http_client.js +++ b/test/unit/mock/mock_http_client.js @@ -1042,7 +1042,7 @@ function buildRequestOutputMappings(clientInfo) { statusCode: 200, statusMessage: "OK", - body: + data: { code: null, data: {