Await datasource initialisation
This commit is contained in:
parent
818c527ab2
commit
90eeba834c
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Reference in a new issue