From 4253ae2589e1b78f3fe4b24889783dc16370c7f6 Mon Sep 17 00:00:00 2001 From: Christoph Hagen Date: Thu, 16 Feb 2023 18:51:27 +0100 Subject: [PATCH] Fix async call --- Sources/App/configure.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/App/configure.swift b/Sources/App/configure.swift index 697c03a..280f8a2 100644 --- a/Sources/App/configure.swift +++ b/Sources/App/configure.swift @@ -58,7 +58,7 @@ public func configure(_ app: Application) async throws { app.migrations.add(PasswordResetMigration()) do { - try app.autoMigrate().wait() + try await app.autoMigrate() } catch { await monitor.log("Failed to migrate database: \(error)") try? await status.update(.initializationFailure)