fix(printers): when reverting back to 90 seconds had a typo on what var to call
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user