Adjust naming of status items

This commit is contained in:
Skylar Grant 2023-11-17 10:22:08 -05:00
parent 1919a9c518
commit ec50ed3516

View File

@ -265,7 +265,7 @@ const functions = {
let { status } = config;
let { rows } = res;
status.auger = rows.auger;
status.blower = rows.blower;
status.exhaust = rows.blower; // TODO update db to use exhaust not blower
status.igniter = rows.igniter;
status.igniterFinished = rows.igniter_finished;
status.pof = rows.proof_of_fire;
@ -277,8 +277,8 @@ const functions = {
dbfn.all(selectTimestampsQuery).then(res => {
let { timestamps } = config;
let { rows } = res;
timestamps.blowerOff = rows.blower_off;
timestamps.blowerOn = rows.blower_on;
timestamps.exhaustOff = rows.blower_off;
timestamps.exhaustOn = rows.blower_on;
timestamps.igniterOff = rows.igniter_off;
timestamps.igniterOn = rows.igniter_on;
timestamps.procStart = rows.process_start;