syntex-automation
Advanced tools
Comparing version 1.2.1-b10 to 1.2.1-b11
{ | ||
"name": "syntex-automation", | ||
"version": "1.2.1-b10", | ||
"version": "1.2.1-b11", | ||
"description": "An automation system for your smart home", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -419,10 +419,10 @@ module.exports = class Automation | ||
this.RequestManager.fetch(theRequest.url, theRequest).then((data, err) => { | ||
this.RequestManager.fetch(theRequest.url, theRequest).then((response) => { | ||
if(data == null) | ||
if(response.data == null) | ||
{ | ||
this.logger.log('error', element.id, element.letters, '[' + name + '] %request_result[0]% [' + theRequest.url + '] %request_result[1]% [' + (err.response != null ? err.response.status : -1) + '] %request_result[2]%: [' + (err.response != null ? err.response.data : '') + '] ', err.stack); | ||
this.logger.log('error', element.id, element.letters, '[' + name + '] %request_result[0]% [' + theRequest.url + '] %request_result[1]% [' + (response.status || -1) + '] %request_result[2]%: [' + (response.data || '') + ']', response.error || ''); | ||
} | ||
resolve(data); | ||
resolve(response.data); | ||
}); | ||
@@ -429,0 +429,0 @@ }); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22537