From ceab174d04eb0f04c4041efe8dbcf5694c0b72fb Mon Sep 17 00:00:00 2001 From: Skylar Grant Date: Fri, 17 Nov 2023 10:24:59 -0500 Subject: [PATCH] fix exhaust to blower in db --- modules/functions.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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.`);