init migration test files, ormconfig

This commit is contained in:
Rupenieks
2020-04-27 12:46:09 +02:00
parent 07c69f5ade
commit daeafe68f3
7 changed files with 107 additions and 59 deletions

View File

@@ -115,7 +115,11 @@ export class Start extends Command {
await credentialTypes.init(loadNodesAndCredentials.credentialTypes);
// Wait till the database is ready
await startDbInitPromise;
let dbReady = await startDbInitPromise;
if(!dbReady){
throw new Error("DB did not initialize.");
}
if (flags.tunnel === true) {
this.log('\nWaiting for tunnel ...');