From 57414b3d332e986af6b1ef48136e0d0ef918a95b Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 27 May 2021 11:30:07 -0700 Subject: deps cleanup --- db/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'db') 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; + -- cgit v1.2.3