Skip to content

Commit 060906c

Browse files
authored
Merge pull request #126 from sendinblue/feature_fix-emailcamp_TRAN-1486
TRAN-1486 fix for email camp statistics
2 parents f46c8c5 + 4937694 commit 060906c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/ApiClient.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -453,11 +453,11 @@ const pkgJson = require('../package.json');
453453
request.accept(accept);
454454
}
455455

456-
if (returnType === 'Blob') {
457-
request.responseType('blob');
458-
} else if (returnType === 'String') {
459-
request.responseType('string');
460-
}
456+
// if (returnType === 'Blob') {
457+
// request.responseType('blob');
458+
// } else if (returnType === 'String') {
459+
// request.responseType('string');
460+
// }
461461

462462
// Attach previously saved cookies, if enabled
463463
if (this.enableCookies){

src/api/EmailCampaignsApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@
305305
this.getEmailCampaign = function(campaignId) {
306306
return this.getEmailCampaignWithHttpInfo(campaignId)
307307
.then(function(response_and_data) {
308-
return response_and_data.data;
308+
return JSON.parse(response_and_data.response.text);
309309
});
310310
}
311311

0 commit comments

Comments
 (0)