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

Commit

Permalink
Use specific func name to avoid conflicts
Browse files Browse the repository at this point in the history
There can be competing implementations when model conforms to multiple
protocols that enable fetching a model given a request.
  • Loading branch information
siemensikkema committed Jun 3, 2020
1 parent dc034dc commit 0a12051
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Submissions/UpdateRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public extension UpdateRequest {
}

public extension UpdateRequest where Model: Authenticatable {
static func update(on request: Request) -> EventLoopFuture<Model> {
static func updateAuthenticatable(on request: Request) -> EventLoopFuture<Model> {
do {
return update(try request.auth.require(), on: request)
} catch {
Expand Down

0 comments on commit 0a12051

Please sign in to comment.