feat(ocp): completly moved ocp to lst

This commit is contained in:
2025-04-06 07:48:05 -05:00
parent 95bebbde2b
commit 51cc4aa370
13 changed files with 448 additions and 96 deletions

View File

@@ -88,7 +88,7 @@ export const dualPrintingProcess = async (lotInfo: any) => {
"info",
"ocp",
"ocp",
`Printing label for ${whatToPrint.MachineDescription}`
`Printing label for ${whatToPrint[0].MachineDescription}`
);
return whatToPrint;
}
@@ -103,7 +103,7 @@ export const dualPrintingProcess = async (lotInfo: any) => {
"info",
"ocp",
"ocp",
`Printing label for ${whatToPrint.MachineDescription}`
`Printing label for ${whatToPrint[0].MachineDescription}`
);
return whatToPrint;
}

View File

@@ -1,24 +0,0 @@
import { createLog } from "../../../../logger/logger.js";
import { query } from "../../../../sqlServer/prodSqlServer.js";
import { machineCheck } from "../../../../sqlServer/querys/ocp/machineId.js";
export const getMac = async (machine: string) => {
let updateQuery = machineCheck.replaceAll("[loc]", machine);
// create blank lots in case there is an error and dose not work
let mac = [];
try {
mac = await query(updateQuery, "Machine id check");
// console.log("Machine data", mac); // removed due to swr being activated
} catch (err) {
createLog(
"error",
"lst",
"ocp",
`Error with Machine id Check query: ${err}`
);
}
return mac;
};