0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00

Fixed await for db initialization

refs #12568

- Was missed during the refactor in 62c2a1a05d
This commit is contained in:
Naz 2021-01-27 11:59:59 +13:00 committed by Daniel Lockyer
parent 815f67492c
commit 75cacc460b
No known key found for this signature in database
GPG key ID: FFBC6FA2A6F6ABC1

View file

@ -178,7 +178,7 @@ const isDatabaseInitialisationRequired = async () => {
// CASE: db initialisation required, wait till finished
if (dbState === 2) {
return migrator.dbInit();
await migrator.dbInit();
}
// CASE: is db incompatible? e.g. you can't connect a 0.11 database with Ghost 1.0 or 2.0