aboutsummaryrefslogtreecommitdiff
path: root/src/db
diff options
context:
space:
mode:
authorHafeez2018-03-05 17:15:56 +0000
committerHafeez2018-03-05 17:15:56 +0000
commit9a18c86cd639a67f7b1685ecb606796fe071a736 (patch)
treef1e8852f036b9210303b2713eb3ae42e9782b23b /src/db
parentfixed expressJwt req user contents (diff)
parentMerge branch 'trh/logger' into trh/payload-checker (diff)
downloadmedicine-9a18c86cd639a67f7b1685ecb606796fe071a736.tar.gz
medicine-9a18c86cd639a67f7b1685ecb606796fe071a736.zip

fixed merge conflict

Diffstat (limited to 'src/db')
-rw-r--r--src/db/orm.ts15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/db/orm.ts b/src/db/orm.ts
index 01d8037..fd70fbb 100644
--- a/src/db/orm.ts
+++ b/src/db/orm.ts
@@ -1,12 +1,15 @@
+import { logQuery } from '../logger';
import { Sequelize } from 'sequelize-typescript';
const seq: Sequelize = new Sequelize({
- database: 'be4',
- dialect: 'postgres',
- username: 'admin',
- password: '',
- operatorsAliases: false,
- modelPaths: [`${__dirname}/model`]
+ database: 'be4',
+ dialect: 'postgres',
+ username: 'admin',
+ password: '',
+ operatorsAliases: false,
+ modelPaths: [`${__dirname}/model`],
+ logging: logQuery,
+ benchmark: true
});
export default seq;