diff options
| author | Adam Soltys <[email protected]> | 2021-05-27 11:30:07 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2021-06-09 16:06:06 -0700 |
| commit | 57414b3d332e986af6b1ef48136e0d0ef918a95b (patch) | |
| tree | 291f4c7cf5e60683ee6d4af7d41468cb1d3e3e07 /db | |
| parent | 6bf4bf019f70435bcea1e4bb586f91fec6ddcee5 (diff) | |
| download | coinos-server-57414b3d332e986af6b1ef48136e0d0ef918a95b.tar.gz coinos-server-57414b3d332e986af6b1ef48136e0d0ef918a95b.zip | |
deps cleanup
Diffstat (limited to 'db')
| -rw-r--r-- | db/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/db/index.js b/db/index.js index d89cc828..afdc08a5 100644 --- a/db/index.js +++ b/db/index.js @@ -2,6 +2,8 @@ const Sequelize = require("sequelize"); const conf = config.dbOptions; const debug = require('debug')('test') +console.log(conf); + debug('DB connection: ', conf.host + ' : ' + conf.database + ' : ' + conf.user) db = new Sequelize(conf.database, conf.user, conf.password, { @@ -11,6 +13,7 @@ db = new Sequelize(conf.database, conf.user, conf.password, { dialectOptions: conf.dialectOptions }); + debug('knex conf: ' + JSON.stringify(conf)) knex = require('knex')({ client: 'mysql2', @@ -158,3 +161,4 @@ Referral.belongsTo(User, { debug('added model relationships') db.Order = Order; + |
