node-red-viseo-helper
Advanced tools
Comparing version 0.3.0-alpha.1 to 0.3.0-alpha.2
@@ -0,0 +0,0 @@ # Contributor Covenant Code of Conduct |
@@ -0,0 +0,0 @@ # Contributing to the Project |
15
index.js
@@ -279,7 +279,7 @@ 'use strict'; | ||
// 24h : 24 * 3600 * 1000 = 86400000 | ||
let logsToSend = JSON.parse(JSON.stringify(activities)) | ||
activities = { info : { start : Date.now(), key : actKey }}; | ||
try { | ||
await sendActivities(activities); | ||
activities = { info : { start : time, key : actKey }}; | ||
await sendActivities(logsToSend); | ||
} catch(err) { | ||
activities = { info : { start : time, key : actKey }}; | ||
if (err.statusCode === 401) { | ||
@@ -327,3 +327,10 @@ oldKeys.push(actKey); | ||
obj[key].nodes = obj[key].nodes.length; | ||
body.data.push(obj[key]); | ||
let newObj = { | ||
"type": obj[key].type, | ||
"start": obj[key].start, | ||
"end": obj[key].end, | ||
"nodes": obj[key].nodes.length, | ||
"calls": obj[key].calls | ||
}; | ||
body.data.push(newObj); | ||
} | ||
@@ -330,0 +337,0 @@ |
@@ -0,0 +0,0 @@ const extend = require('extend'); |
{ | ||
"name" : "node-red-viseo-helper", | ||
"version" : "0.3.0-alpha.1", | ||
"version" : "0.3.0-alpha.2", | ||
"description" : "Utility libarary for Node-RED", | ||
@@ -5,0 +5,0 @@ "dependencies" : { |
@@ -0,0 +0,0 @@ # Node-RED |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
28186
310