feat(ocp): completly moved ocp to lst
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
Reference in New Issue
Block a user