Cleaned up the loaders

ref #11
This commit is contained in:
2020-12-05 19:09:08 +01:00
parent a3a809bb40
commit f58a715c45
4 changed files with 19 additions and 4 deletions

View File

@@ -1,5 +1,8 @@
import { createConnection } from "typeorm";
/**
* Loader for the database that creates the database connection and initializes the database tabels.
*/
export default async () => {
const connection = await createConnection();
connection.synchronize();