diff --git a/node-red/flows_js/debug.144c2f0348f31878.flows.js b/node-red/flows_js/debug.144c2f0348f31878.flows.js index 67cbcf1..9cce6b0 100644 --- a/node-red/flows_js/debug.144c2f0348f31878.flows.js +++ b/node-red/flows_js/debug.144c2f0348f31878.flows.js @@ -7,7 +7,7 @@ const Node = { "tosidebar": true, "console": true, "tostatus": false, - "complete": "payload.changedRows = 1 ?\t{\t $globalContext(\"metadataTablename.maaler\"): \"metadata updated\",\t \"deviceEui\": data.deviceEui,\t \"observatedAt\": data.observedAt,\t \"dataTable\": data.tablename\t}\t:\t{\t $globalContext(\"metadataTablename.maaler\"): \"error updating metadata\",\t \"error\": error.message,\t \"sql\": sql\t}", + "complete": "payload.changedRows > 0 ?\t{\t $globalContext(\"metadataTablename.maaler\"): \"metadata updated\",\t \"deviceEui\": data.deviceEui,\t \"observatedAt\": data.observedAt,\t \"dataTable\": data.tablename,\t \"changedRows\": payload.changedRows\t}\t:\t{\t $globalContext(\"metadataTablename.maaler\"): \"error updating metadata\",\t \"error\": error.message,\t \"sql\": sql\t}", "targetType": "jsonata", "statusVal": "", "statusType": "auto", diff --git a/node-red/flows_js/group.4b90a672643d16a1.flows.js b/node-red/flows_js/group.4b90a672643d16a1.flows.js index 9cefe93..1076a23 100644 --- a/node-red/flows_js/group.4b90a672643d16a1.flows.js +++ b/node-red/flows_js/group.4b90a672643d16a1.flows.js @@ -18,9 +18,7 @@ const Node = { "ef4237b9fbacf84f" ], "x": 114, - "y": 59, - "w": 492, - "h": 82 + "y": 59 } module.exports = Node; \ No newline at end of file diff --git a/node-red/flows_js/switch.a2fe1cd8c1009415.flows.js b/node-red/flows_js/switch.a2fe1cd8c1009415.flows.js index d61ac5c..e3e8570 100644 --- a/node-red/flows_js/switch.a2fe1cd8c1009415.flows.js +++ b/node-red/flows_js/switch.a2fe1cd8c1009415.flows.js @@ -8,7 +8,7 @@ const Node = { "rules": [ { "t": "gte", - "v": "\t\t(data.observedAt ~> $split(\".\"))[0] ~> $toMillis", + "v": "(data.observedAt ~> $split(\".\"))[0] ~> $toMillis", "vt": "jsonata" }, {