From 0a12051c2d299fb2ef31ddc033c565eb9948368c Mon Sep 17 00:00:00 2001 From: Siemen Sikkema Date: Wed, 3 Jun 2020 15:30:30 +0200 Subject: [PATCH] Use specific func name to avoid conflicts There can be competing implementations when model conforms to multiple protocols that enable fetching a model given a request. --- Sources/Submissions/UpdateRequest.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Submissions/UpdateRequest.swift b/Sources/Submissions/UpdateRequest.swift index 2b61b46..b0822c4 100644 --- a/Sources/Submissions/UpdateRequest.swift +++ b/Sources/Submissions/UpdateRequest.swift @@ -21,7 +21,7 @@ public extension UpdateRequest { } public extension UpdateRequest where Model: Authenticatable { - static func update(on request: Request) -> EventLoopFuture { + static func updateAuthenticatable(on request: Request) -> EventLoopFuture { do { return update(try request.auth.require(), on: request) } catch {