fix(consume material): changes made to remove the rest of the auth needs

This commit is contained in:
2025-09-18 10:59:55 -05:00
parent bdc1e72fc1
commit 360549aaf4
3 changed files with 66 additions and 53 deletions

View File

@@ -13,7 +13,7 @@ type Data = {
runningNr: string;
lotNum: number;
};
export const consumeMaterial = async (data: Data, prod: any) => {
export const consumeMaterial = async (data: Data) => {
const { runningNr, lotNum } = data;
// replace the rn
@@ -28,12 +28,7 @@ export const consumeMaterial = async (data: Data, prod: any) => {
barcode = r?.data;
} catch (error) {
console.log(error);
createLog(
"error",
prod.user.username,
"logistics",
`Error getting barcode: ${error}`
);
createLog("error", "", "logistics", `Error getting barcode: ${error}`);
}
if (barcode.length === 0) {