formatting
This commit is contained in:
parent
63635956ce
commit
f7d7f5e75f
@ -8,5 +8,5 @@ export default {
|
|||||||
username: process.env.DB_USER,
|
username: process.env.DB_USER,
|
||||||
password: process.env.DB_PASSWORD,
|
password: process.env.DB_PASSWORD,
|
||||||
database: process.env.DB_NAME,
|
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();
|
const connection = await createConnection();
|
||||||
connection.synchronize();
|
connection.synchronize();
|
||||||
return connection;
|
return connection;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import {Application} from "express";
|
import { Application } from "express";
|
||||||
import bodyParser from 'body-parser';
|
import bodyParser from 'body-parser';
|
||||||
import cors from 'cors';
|
import cors from 'cors';
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user