Skip to content

Commit

Permalink
SNOW-502598: Revert normalizing response
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-ext-simba-lf committed Oct 23, 2023
1 parent 8d8bd87 commit a479942
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/connection/connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/http/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ HttpClient.prototype.requestAsync = async function (options)
response['data'] = JSON.parse(response['data']);
}

return normalizeResponse(response);
return response;
};

/**
Expand Down
2 changes: 1 addition & 1 deletion test/unit/mock/mock_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ function buildRequestOutputMappings(clientInfo)
{
statusCode: 200,
statusMessage: "OK",
body:
data:
{
code: null,
data: {
Expand Down

0 comments on commit a479942

Please sign in to comment.