From 8f1ee661670bc783d536f75fa271f6ca48744b82 Mon Sep 17 00:00:00 2001 From: Simon Edelmann Date: Tue, 21 Jul 2020 11:17:50 +0200 Subject: [PATCH] Fix deprecation warning --- Sources/CRUDKit/Extensions/Content+Validatable.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/CRUDKit/Extensions/Content+Validatable.swift b/Sources/CRUDKit/Extensions/Content+Validatable.swift index 65c73f3..808ed5d 100644 --- a/Sources/CRUDKit/Extensions/Content+Validatable.swift +++ b/Sources/CRUDKit/Extensions/Content+Validatable.swift @@ -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) } } }