diff options
| author | Ran Guin <[email protected]> | 2021-05-13 14:53:27 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-06-04 22:38:18 -0700 |
| commit | e8375321ad2c3c9cdf96834fddd8f9e487ec672f (patch) | |
| tree | 2359344e28a572703e019578047b1c5cab1e8259 /db/index.js | |
| parent | c8ca4d57b167f97051919dc05a06c088da4c7948 (diff) | |
| download | coinos-server-e8375321ad2c3c9cdf96834fddd8f9e487ec672f.tar.gz coinos-server-e8375321ad2c3c9cdf96834fddd8f9e487ec672f.zip | |
tweak db conf
Diffstat (limited to 'db/index.js')
| -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, |
