fix(lots): if no lots are assigned or released correct so nothing is posted

This commit is contained in:
2025-05-19 15:01:28 -05:00
parent 2fe48097e5
commit 080087fa0d

View File

@@ -19,6 +19,15 @@ export const assignedPrinters = async () => {
};
}
if (l.data.length === 0 && l.success) {
createLog("info", "lst", "ocp", `There are no lots assigned currently`);
return {
success: true,
message: "There are no lots assigned currenly.",
data: [],
};
}
if (l.data.length === 0 && !l.data.sucess) {
createLog(
"error",