feat: Fixes 'any' not being used in some function calls.
This commit is contained in:
@@ -55,7 +55,7 @@ extension VendorBranch {
|
||||
struct Migrate: AsyncMigration {
|
||||
let name = "CreateVendorBranch"
|
||||
|
||||
func prepare(on database: Database) async throws {
|
||||
func prepare(on database: any Database) async throws {
|
||||
try await database.schema(VendorBranchModel.schema)
|
||||
.id()
|
||||
.field("name", .string, .required)
|
||||
@@ -66,7 +66,7 @@ extension VendorBranch {
|
||||
.create()
|
||||
}
|
||||
|
||||
func revert(on database: Database) async throws {
|
||||
func revert(on database: any Database) async throws {
|
||||
try await database.schema(VendorBranchModel.schema).delete()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user