diff --git a/modules/functions.js b/modules/functions.js index af3e358..625d074 100644 --- a/modules/functions.js +++ b/modules/functions.js @@ -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.`);