aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/index.js4
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;
+