feat: Fixes 'any' not being used in some function calls.

This commit is contained in:
2025-01-13 16:54:28 -05:00
parent b38dc0d4e3
commit 6225c32007
8 changed files with 17 additions and 14 deletions

View File

@@ -123,7 +123,7 @@ extension Employee {
let name = "CreateEmployee"
func prepare(on database: Database) async throws {
func prepare(on database: any Database) async throws {
try await database.schema(Employee.schema)
.id()
.field("first_name", .string, .required)
@@ -135,7 +135,7 @@ extension Employee {
.create()
}
func revert(on database: Database) async throws {
func revert(on database: any Database) async throws {
try await database.schema(Employee.schema).delete()
}