feat working on vendor views.
This commit is contained in:
@@ -31,7 +31,7 @@ struct VendorApiController: RouteCollection {
|
||||
|
||||
@Sendable
|
||||
func update(req: Request) async throws -> Vendor {
|
||||
return try await vendors.update(req.ensureIDPathComponent(), req.content.decode(Vendor.Update.self))
|
||||
return try await vendors.update(req.ensureIDPathComponent(), with: req.content.decode(Vendor.Update.self))
|
||||
}
|
||||
|
||||
@Sendable
|
||||
|
||||
Reference in New Issue
Block a user