formatting

This commit is contained in:
Philipp Dormann 2020-11-27 18:28:42 +01:00
parent 63635956ce
commit f7d7f5e75f
3 changed files with 4 additions and 4 deletions

View File

@ -8,5 +8,5 @@ export default {
username: process.env.DB_USER,
password: process.env.DB_PASSWORD,
database: process.env.DB_NAME,
entities: ["src/models/*.ts"]
entities: ["src/models/*.ts"]
};

View File

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

View File

@ -1,4 +1,4 @@
import {Application} from "express";
import { Application } from "express";
import bodyParser from 'body-parser';
import cors from 'cors';