fix exhaust to blower in db
This commit is contained in:
parent
ec50ed3516
commit
ceab174d04
@ -196,14 +196,14 @@ const functions = {
|
||||
}).catch(err => console.log(`[${(Date.now() - config.timestamps.procStart)/1000}] E: ${err}`));
|
||||
},
|
||||
exhaustOn() {
|
||||
const enableExhaustQuery = "UPDATE status SET value = 1 WHERE key = 'exhaust'";
|
||||
const enableExhaustQuery = "UPDATE status SET value = 1 WHERE key = 'blower'";
|
||||
dbfn.run(enableExhaustQuery).then(res => {
|
||||
console.log(`[${(Date.now() - config.timestamps.procStart) / 1000}] I: Exhaust enabled.`);
|
||||
return;
|
||||
}).catch(err => console.log(`[${(Date.now() - config.timestamps.procStart)/1000}] E: ${err}`));
|
||||
},
|
||||
exhaustOff() {
|
||||
const disableExhaustQuery = "UPDATE status SET value = 0 WHERE key = 'exhaust'";
|
||||
const disableExhaustQuery = "UPDATE status SET value = 0 WHERE key = 'blower'";
|
||||
dbfn.run(disableExhaustQuery).then(res => {
|
||||
if (process.env.DEBUG) console.log(`[${(Date.now() - config.timestamps.procStart)/1000}] I: ${res.status}`);
|
||||
console.log(`[${(Date.now() - config.timestamps.procStart) / 1000}] I: Exhaust disabled.`);
|
||||
|
Loading…
Reference in New Issue
Block a user