Merge branch 'main' of git.odit.services:lfk/backend into main

This commit is contained in:
Nicolai Ort 2020-11-27 18:46:08 +01:00
commit 56ee91e762
4 changed files with 6 additions and 15 deletions

View File

@ -50,22 +50,13 @@
"@types/node": "^14.14.9",
"@types/swagger-ui-express": "^4.1.2",
"dotenv-safe": "^8.2.0",
"husky": "^4.3.0",
"nodemon": "^2.0.6",
"prettier": "^2.2.0",
"pretty-quick": "^3.1.0",
"sqlite3": "^5.0.0",
"ts-node": "^9.0.0",
"typescript": "^4.1.2"
},
"scripts": {
"dev": "nodemon src/app.ts",
"build": "tsc",
"format": "pretty-quick"
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
}
"build": "tsc"
}
}

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';