formatting
This commit is contained in:
@@ -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"]
|
||||
};
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import {Application} from "express";
|
||||
import { Application } from "express";
|
||||
import bodyParser from 'body-parser';
|
||||
import cors from 'cors';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user