Skip to content
This repository was archived by the owner on Apr 20, 2024. It is now read-only.

Commit 0a12051

Browse files
committed
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.
1 parent dc034dc commit 0a12051

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Submissions/UpdateRequest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public extension UpdateRequest {
2121
}
2222

2323
public extension UpdateRequest where Model: Authenticatable {
24-
static func update(on request: Request) -> EventLoopFuture<Model> {
24+
static func updateAuthenticatable(on request: Request) -> EventLoopFuture<Model> {
2525
do {
2626
return update(try request.auth.require(), on: request)
2727
} catch {

0 commit comments

Comments
 (0)