Await datasource initialisation
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone/pr Build is failing

This commit is contained in:
Ethan Lane 2023-05-22 18:12:24 +01:00
parent 818c527ab2
commit 90eeba834c

View file

@ -42,7 +42,7 @@ export class CoreClient extends Client {
return;
}
AppDataSource.initialize()
await AppDataSource.initialize()
.then(() => console.log("Data Source Initialized"))
.catch((err) => console.error("Error Initialising Data Source", err));