Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions lib/helpers/contact-importer/contact-importer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@ var ContactImporter = module.exports = function(sg, options) {
owner: self,
}, function(error, result) {
if (error) {
return self._notify(error, JSON.parse(error.response.body), batch);
return self._notify(error, error.response.body, batch);
}
return self._notify(null, JSON.parse(result.body), batch);
return self._notify(null, result.body, batch);
});
}
};
Expand Down Expand Up @@ -79,9 +79,9 @@ ContactImporter.prototype.push = function(data) {
owner: self,
}, function(error, result) {
if (error) {
return self._notify(error, JSON.parse(error.response.body), batch);
return self._notify(error, error.response.body, batch);
}
return self._notify(null, JSON.parse(result.body), batch);
return self._notify(null, result.body, batch);
});
}
// Otherwise, it store it for later.
Expand Down