feat(eom): all endpoints created for the eom template to run in all plants

This commit is contained in:
2025-09-30 19:55:35 -05:00
parent a7f45abfeb
commit 9a14f250b6
25 changed files with 872 additions and 33 deletions

View File

@@ -85,16 +85,16 @@ export const labelingProcess = async ({
(l: any) => l.MachineID === macId[0]?.HumanReadableId
);
if (filteredLot.length === 0) {
if (!filteredLot || filteredLot.length === 0) {
createLog(
"error",
"labeling",
"ocp",
`There is not a lot assigned to ${line}.`
`There is not a lot assigned to ${zechette.line}.`
);
return {
success: false,
message: `There is not a lot assigned to ${line}.`,
message: `There is not a lot assigned to ${zechette.line}.`,
};
}