Skip to content

Commit

Permalink
Update stdout for metadata update
Browse files Browse the repository at this point in the history
  • Loading branch information
st-randers committed May 6, 2024
1 parent 756399a commit 3c47ff3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion node-red/flows_js/debug.144c2f0348f31878.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 1 addition & 3 deletions node-red/flows_js/group.4b90a672643d16a1.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ const Node = {
"ef4237b9fbacf84f"
],
"x": 114,
"y": 59,
"w": 492,
"h": 82
"y": 59
}

module.exports = Node;
2 changes: 1 addition & 1 deletion node-red/flows_js/switch.a2fe1cd8c1009415.flows.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
{
Expand Down

0 comments on commit 3c47ff3

Please sign in to comment.