Fix async call
This commit is contained in:
parent
e9a650ddec
commit
4253ae2589
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user