fix(bookin): corrected the bookin in error response

this could still print a label if the system detects the material properly but some other issue with
alplaprod happened
This commit is contained in:
2025-09-01 11:05:36 -05:00
parent cfed981928
commit 1f8b8a7248

View File

@@ -285,9 +285,15 @@ export const labelingProcess = async ({
// "ocp",
// `Error Booking in label: ${book.errors[0].message}`
// );
createLog(
"error",
"labeling",
"ocp",
`There was an error booking in the label: ${book?.errors[0]?.message}`
);
return {
success: false,
message: `Error Booking in label: ${book.errors[0]?.message}`,
message: `Error Booking in label: ${book?.errors[0]?.message}`,
data: book,
};
}