Skip to content

Commit e154f9e

Browse files
committed
Fixed issue
* Linter errors
1 parent 53ad3f4 commit e154f9e

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

template-express-ts-typeorm/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"license": "ISC",
3131
"dependencies": {
3232
"express": "^4.17.1",
33+
"pg": "^8.6.0",
3334
"reflect-metadata": "^0.1.13",
3435
"typeorm": "^0.2.32"
3536
},

template-express-ts-typeorm/src/config/db.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { createConnection } from 'typeorm';
22

3-
import { DB_URI } from '@/config/env'
3+
import { DB_URI } from '@/config/env';
44

55

66
export default createConnection({

template-express-ts-typeorm/src/index.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import express from "express";
1+
import express from 'express';
22

3-
import { globalRouter } from "@/api/routes";
4-
import db from "@/config/db";
3+
import { globalRouter } from '@/api/routes';
4+
import db from '@/config/db';
55

66
const PORT = 8080;
77
const app = express();
@@ -11,7 +11,7 @@ app.use(express.urlencoded({ extended: true }));
1111

1212
/** DB Connection */
1313
db
14-
.then((_) => console.log("DB Connected"))
14+
.then((_) => console.log('DB Connected'))
1515
.catch((err) => console.error(err));
1616

1717
/** Global Routing */

0 commit comments

Comments
 (0)