x
This commit is contained in:
1 parent
6a35dcf955
commit
b362f5cadf
10 files changed
+335
-78
No files matched your search
@@ -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
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user