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()) app.migrations.add(PasswordResetMigration())
do { do {
try app.autoMigrate().wait() try await app.autoMigrate()
} catch { } catch {
await monitor.log("Failed to migrate database: \(error)") await monitor.log("Failed to migrate database: \(error)")
try? await status.update(.initializationFailure) try? await status.update(.initializationFailure)