Switch to TypeORM's DataSource API #299

Merged
Vylpes merged 5 commits from feature/297-stage-deployment into develop 2023-05-26 17:59:22 +01:00
Showing only changes of commit 90eeba834c - Show all commits

View file

@ -42,7 +42,7 @@ export class CoreClient extends Client {
return; return;
} }
AppDataSource.initialize() await AppDataSource.initialize()
Vylpes marked this conversation as resolved Outdated

I think this should be awaited, or at least put the rest of the function in the .then()

I think this should be awaited, or at least put the rest of the function in the .then()
.then(() => console.log("Data Source Initialized")) .then(() => console.log("Data Source Initialized"))
.catch((err) => console.error("Error Initialising Data Source", err)); .catch((err) => console.error("Error Initialising Data Source", err));