Skip to content

Commit

Permalink
Don't respond with the axios response object, but rather with the res…
Browse files Browse the repository at this point in the history
…ponse data
  • Loading branch information
jpcanepa committed May 27, 2020
1 parent 665bc5c commit 9d5623e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/management/JobsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,9 @@ JobsManager.prototype.importUsers = function(data, cb) {
var promise = options.tokenProvider.getAccessToken().then(function(access_token) {
return axios
.post(url, form, { headers: { ...headers, Authorization: `Bearer ${access_token}` } })
.then((response) => {
return response.data;
})
.catch(function(err) {
if (!err.response) {
return Promise.reject(err);
Expand Down

0 comments on commit 9d5623e

Please sign in to comment.