diff options
| author | Ran Guin <[email protected]> | 2021-05-13 14:53:27 -0700 |
|---|---|---|
| committer | Ran Guin <[email protected]> | 2021-05-13 14:53:27 -0700 |
| commit | a8ac26338be8a1503b3389ef6e755ec76adff694 (patch) | |
| tree | fa9c4049de28942e760e4215aa93f447784757af | |
| parent | fb83a4d0f8587c87faeb02758f1f9a9305c1a60c (diff) | |
| download | coinos-server-a8ac26338be8a1503b3389ef6e755ec76adff694.tar.gz coinos-server-a8ac26338be8a1503b3389ef6e755ec76adff694.zip | |
tweak db conf
| -rw-r--r-- | db/index.js | 3 |
1 files changed, 1 insertions, 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, |
