Now creating db schemas

ref #3
This commit is contained in:
Nicolai Ort 2020-11-25 18:51:48 +01:00
parent 21645be25c
commit b5cf040cf0
1 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,7 @@
import {createConnection} from "typeorm";
export default async ()=> {
return await createConnection();
const connection = await createConnection();
connection.synchronize();
return connection;
};