From b35aa9037c5f0565bfbb46f9ff6e94b490e6bfba Mon Sep 17 00:00:00 2001 From: Tim <0xtimc@gmail.com> Date: Tue, 17 Mar 2020 14:10:44 +0000 Subject: [PATCH] Wait for migrations to finish --- Sources/Run/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Run/main.swift b/Sources/Run/main.swift index 9d1bac1..8dcc9a1 100644 --- a/Sources/Run/main.swift +++ b/Sources/Run/main.swift @@ -6,5 +6,5 @@ try LoggingSystem.bootstrap(from: &env) let app = Application(env) defer { app.shutdown() } try configure(app) -app.autoMigrate() +try app.autoMigrate().wait() try app.run()