This commit is contained in:
Your Name committed 2026-06-28 01:40:45 -04:00
1 parent 6a35dcf955
commit b362f5cadf
10 files changed
+335 -78

No files matched your search

+7
View File
@@ -312,6 +312,13 @@ export const productsRoute = new Elysia({ prefix: "/products" })
option2: v.option2 || "",
option3: v.option3 || "",
price: v.price || 0,
bomItems: v.bomItems ? {
deleteMany: {},
create: v.bomItems.map((b: any) => ({
rawMaterialId: b.rawMaterialId,
quantity: b.quantity,
}))
} : undefined
}
});
}