Do not start server before migrations are finished

pull/108/head
Candid Dauth 2017-04-27 19:31:57 +02:00
rodzic dd6cce4c62
commit 86342837bd
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -31,7 +31,7 @@ class Database extends events.EventEmitter {
return this._conn.authenticate().then(() => {
return this._conn.sync({ force: !!force });
}).then(() => {
this._runMigrations()
return this._runMigrations()
});
}
}