fix(labeling process): corrected a typo in success
This commit is contained in:
@@ -130,7 +130,7 @@ export const createLabel = async (data: any, userPrinted: any) => {
|
|||||||
|
|
||||||
// check if we can remove labels or not
|
// check if we can remove labels or not
|
||||||
//deleteLabels();
|
//deleteLabels();
|
||||||
return { sucess: true, message: "Label created", data: returnData }; // returning label data to be able to book in if active
|
return { success: true, message: "Label created", data: returnData }; // returning label data to be able to book in if active
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
createLog(
|
createLog(
|
||||||
"info",
|
"info",
|
||||||
|
|||||||
@@ -214,15 +214,15 @@ export const labelingProcess = async ({
|
|||||||
// create the label
|
// create the label
|
||||||
const label = await createLabel(filteredLot[0], userPrinted);
|
const label = await createLabel(filteredLot[0], userPrinted);
|
||||||
|
|
||||||
// if (!label.success) {
|
if (!label.success) {
|
||||||
// createLog(
|
createLog(
|
||||||
// "error",
|
"error",
|
||||||
// "labeling",
|
"labeling",
|
||||||
// "ocp",
|
"ocp",
|
||||||
// `There was an error creating the label: ${label.message}`
|
`There was an error creating the label: ${label.message}`
|
||||||
// );
|
);
|
||||||
// return { sucess: false, message: label.message, data: label.data };
|
return { sucess: false, message: label.message, data: label.data };
|
||||||
// }
|
}
|
||||||
|
|
||||||
// send over to be booked in if we can do it.
|
// send over to be booked in if we can do it.
|
||||||
const bookin = settingData.filter((s) => s.name === "bookin");
|
const bookin = settingData.filter((s) => s.name === "bookin");
|
||||||
|
|||||||
Reference in New Issue
Block a user