From e8375321ad2c3c9cdf96834fddd8f9e487ec672f Mon Sep 17 00:00:00 2001 From: Ran Guin Date: Thu, 13 May 2021 14:53:27 -0700 Subject: tweak db conf --- db/index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/db/index.js b/db/index.js index 727ad8b2..37394ecf 100644 --- a/db/index.js +++ b/db/index.js @@ -1,9 +1,8 @@ const Sequelize = require("sequelize"); -const conf = config.dbOptions[process.env.NODE_ENV || "development"]; +const conf = config.dbOptions; const debug = require('debug')('db') debug('opt: ', JSON.stringify(conf)) -debug('dialect: ', JSON.stringify(conf.dialectOptions)) db = new Sequelize(conf.database, conf.username, conf.password, { host: conf.host, -- cgit v1.2.3