diff --git a/lib/httpClient.js b/lib/httpClient.js index 3da1141..38f1979 100644 --- a/lib/httpClient.js +++ b/lib/httpClient.js @@ -32,7 +32,7 @@ class HttpClient{ reqQueryParam = secondParam; } - return new Promise(function(resolve,reject){ + return new Promise((resolve,reject) => { // Reject if param is not JSON if(typeof reqBodyPayload === 'string' || reqBodyPayload instanceof String){ try{ @@ -50,7 +50,7 @@ class HttpClient{ } } - let response = axios({ + let response = this.http_client({ method: httpMethod, headers: headers, url: requestUrl,