aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorRan Guin <[email protected]>2021-05-13 14:53:27 -0700
committerAdam Soltys <[email protected]>2021-06-04 22:38:18 -0700
commite8375321ad2c3c9cdf96834fddd8f9e487ec672f (patch)
tree2359344e28a572703e019578047b1c5cab1e8259 /db
parentc8ca4d57b167f97051919dc05a06c088da4c7948 (diff)
downloadcoinos-server-e8375321ad2c3c9cdf96834fddd8f9e487ec672f.tar.gz
coinos-server-e8375321ad2c3c9cdf96834fddd8f9e487ec672f.zip
tweak db conf
Diffstat (limited to 'db')
-rw-r--r--db/index.js3
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,