Skip to content
This repository has been archived by the owner on Sep 10, 2022. It is now read-only.

Commit

Permalink
Fix deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
simonedelmann committed Jul 21, 2020
1 parent bc13279 commit 8f1ee66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/CRUDKit/Extensions/Content+Validatable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Vapor
extension Content {
internal static func validate(on request: Request) throws {
if let validatable = Self.self as? Validatable.Type {
try validatable.validate(request)
try validatable.validate(content: request)
}
}
}

0 comments on commit 8f1ee66

Please sign in to comment.