Fix database connection (host + port)

This commit is contained in:
Chocobozzz 2017-12-15 08:21:00 +01:00
parent 6f045b5791
commit 228077efd7
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 4 additions and 1 deletions

View File

@ -28,13 +28,16 @@ require('pg').defaults.parseInt8 = true // Avoid BIGINT to be converted to strin
const dbname = CONFIG.DATABASE.DBNAME
const username = CONFIG.DATABASE.USERNAME
const password = CONFIG.DATABASE.PASSWORD
const host = CONFIG.DATABASE.HOSTNAME
const port = CONFIG.DATABASE.PORT
const sequelizeTypescript = new SequelizeTypescript({
database: dbname,
dialect: 'postgres',
host,
port,
username,
password,
modelPaths: [__dirname + '/models'],
benchmark: isTestInstance(),
isolationLevel: SequelizeTypescript.Transaction.ISOLATION_LEVELS.SERIALIZABLE,
operatorsAliases: false,