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:
@@ -285,9 +285,15 @@ export const labelingProcess = async ({
|
|||||||
// "ocp",
|
// "ocp",
|
||||||
// `Error Booking in label: ${book.errors[0].message}`
|
// `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 {
|
return {
|
||||||
success: false,
|
success: false,
|
||||||
message: `Error Booking in label: ${book.errors[0]?.message}`,
|
message: `Error Booking in label: ${book?.errors[0]?.message}`,
|
||||||
data: book,
|
data: book,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user