feat: Initial purchase order views, login seems to be broken though.
This commit is contained in:
@@ -28,8 +28,8 @@ struct PurchaseOrderApiController: RouteCollection {
|
||||
@Sendable
|
||||
func create(req: Request) async throws -> PurchaseOrder {
|
||||
try await purchaseOrders.create(
|
||||
req.content.decode(PurchaseOrder.Create.self),
|
||||
req.auth.require(User.self).id
|
||||
req.content.decode(PurchaseOrder.CreateIntermediate.self)
|
||||
.toCreate(createdByID: req.auth.require(User.self).id)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user