fix(mainmaterial): added missing return
This commit is contained in:
@@ -24,7 +24,10 @@ export const isMainMatStaged = async (lot: any) => {
|
|||||||
// just in case we encounter an issue with the machines
|
// just in case we encounter an issue with the machines
|
||||||
if (machine.length === 0) {
|
if (machine.length === 0) {
|
||||||
createLog("error", "mainMaterial", "ocp", "Invalid machine passed over.");
|
createLog("error", "mainMaterial", "ocp", "Invalid machine passed over.");
|
||||||
return false;
|
return {
|
||||||
|
success: false,
|
||||||
|
message: "Invalid machine passed over.",
|
||||||
|
};
|
||||||
}
|
}
|
||||||
// we have a check on ksc side to ignore the tetra machine for now as its not updating in 2.0
|
// we have a check on ksc side to ignore the tetra machine for now as its not updating in 2.0
|
||||||
if (!machine[0].StagingMainMaterialMandatory) {
|
if (!machine[0].StagingMainMaterialMandatory) {
|
||||||
|
|||||||
Reference in New Issue
Block a user