fix(printers): when reverting back to 90 seconds had a typo on what var to call

This commit is contained in:
2025-10-07 06:43:47 -05:00
parent 62e78d2a30
commit 265dd8ca7a

View File

@@ -36,7 +36,7 @@ export const printerDelayByLot = async (lot: any) => {
if (printDelay[0].value === "0") {
for (let i = 0; i < p.length; i++) {
if (p[i].printDelay > 90) {
if (ignorePrinters.includes(lot[i].PrinterName)) continue;
if (ignorePrinters.includes(p[i].name)) continue;
const { data, error } = await tryCatch(
db
@@ -80,7 +80,7 @@ export const printerDelayByLot = async (lot: any) => {
db
.update(printerData)
.set({
printDelay: lot[i].timeTOmakeInSeconds.toFixed(2),
printDelay: lot[i].timeTOmakeInSeconds,
upd_date: sql`NOW()`,
})
.where(eq(printerData.humanReadableId, lot[i].printerID))