Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -22,7 +22,7 @@ const factoring = async (topic, message) => { | ... | @@ -22,7 +22,7 @@ const factoring = async (topic, message) => { |
22 | const data = message.split('/'); | 22 | const data = message.split('/'); |
23 | let [isOpen, temperature, humidity, balance] = data; | 23 | let [isOpen, temperature, humidity, balance] = data; |
24 | 24 | ||
25 | - if(isOpen === '0') | 25 | + if(isOpen === '1') |
26 | balance = await balanceFactoring(balance); | 26 | balance = await balanceFactoring(balance); |
27 | else balance = '-1'; | 27 | else balance = '-1'; |
28 | 28 | ... | ... |
-
Please register or login to post a comment