@@ -226,21 +226,18 @@ function QLTools(url, clientId, clientSecret) {
},
body: body,
};
- this.log(auth);
- this.log(url);
return new Promise(resolve => {
let func = this[reqType];
if(!func){
resolve();
return;
}
- this.log("#############");
func.call(this, options, async (error, response, data) => {
try {
let result = JSON.parse(data);
resolve(result);
} catch (error) {
- this.log(error);
+ resolve(data);
} finally {