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

Commit

Permalink
Merge pull request #55 from nodes-vapor/feature/update-authenticatable
Browse files Browse the repository at this point in the history
Use specific func name to avoid conflicts
  • Loading branch information
siemensikkema authored Jun 3, 2020
2 parents dc034dc + 0a12051 commit 6880fd8
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 6880fd8

Please sign in to comment.