Skip to content

Commit 974fbe5

Browse files
chore: change some variable name
1 parent 3cd56d2 commit 974fbe5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flows.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@
599599
"type": "function",
600600
"z": "09012e75c72a4968",
601601
"name": "getRoomIDAndActuatorType",
602-
"func": "let jsonData = JSON.parse(msg.payload);\nmsg.roomID = jsonData[msg.actuator_id][\"room\"]\nmsg.type = jsonData[msg.actuator_id][\"type\"]\nreturn msg;",
602+
"func": "let jsonData = JSON.parse(msg.payload);\nmsg.room_id = jsonData[msg.actuator_id][\"room\"]\nmsg.type = jsonData[msg.actuator_id][\"type\"]\nreturn msg;",
603603
"outputs": 1,
604604
"noerr": 0,
605605
"initialize": "",
@@ -638,7 +638,7 @@
638638
"type": "function",
639639
"z": "09012e75c72a4968",
640640
"name": "getSerial",
641-
"func": "let jsonData = JSON.parse(msg.payload);\nmsg.serial = jsonData[msg.room]\nreturn msg;",
641+
"func": "let jsonData = JSON.parse(msg.payload);\nmsg.serial = jsonData[msg.room_id]\nreturn msg;",
642642
"outputs": 1,
643643
"noerr": 0,
644644
"initialize": "",
@@ -1316,7 +1316,7 @@
13161316
"z": "09012e75c72a4968",
13171317
"name": "",
13181318
"serial": "94b8abb47e4cb1f2",
1319-
"x": 2150,
1319+
"x": 2070,
13201320
"y": 1280,
13211321
"wires": []
13221322
},

0 commit comments

Comments
 (0)