Fix async call

This commit is contained in:
Christoph Hagen 2023-02-16 18:51:27 +01:00
parent e9a650ddec
commit 4253ae2589

View File

@ -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)