From f6c36cb489cf2eda6ad5c70f9662b17b51281dbe Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Mon, 27 Jan 2025 12:18:59 -0500 Subject: [PATCH] fix: Fixes purchase order generation through api allows id to be passed in. --- Sources/DatabaseClientLive/PurchaseOrders+live.swift | 2 ++ 1 file changed, 2 insertions(+) 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,