diff --git a/Sources/DatabaseClientLive/PurchaseOrders+live.swift b/Sources/DatabaseClientLive/PurchaseOrders+live.swift index 9f5aaab..db0cd95 100644 --- a/Sources/DatabaseClientLive/PurchaseOrders+live.swift +++ b/Sources/DatabaseClientLive/PurchaseOrders+live.swift @@ -91,6 +91,8 @@ extension PurchaseOrder.Create { func toModel() throws -> PurchaseOrderModel { try validate() return .init( + id: id, + workOrder: workOrder, materials: materials, customer: customer, truckStock: truckStock ?? false,