From 1fc694a6d27e6c7d5c768f17a164802618c214a4 Mon Sep 17 00:00:00 2001 From: Senad Uka Date: Wed, 24 Jul 2019 07:25:29 +0200 Subject: [PATCH] Debugging addition --- environment.env | 2 ++ models/index.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/environment.env b/environment.env index b4f3c76..b77df6a 100644 --- a/environment.env +++ b/environment.env @@ -22,3 +22,5 @@ UNLOCK_STREAK_REPAIR_AFTER=Number of months without incidents to reset user inci BOOKING_CHANGE_PERCENTAGE_CHARGE=Percentage of hourly reate to apply for cancellation-like charges ALLOWED_BOOKING_CANCELLATION_TIME=Time from creation (in minutes) in which cancellation is not charged + +SEQUELIZE_LOGGING=0 - false, 1 - true (console logging) diff --git a/models/index.js b/models/index.js index a750de4..9f372c9 100644 --- a/models/index.js +++ b/models/index.js @@ -5,7 +5,7 @@ const path = require('path'); const Sequelize = require('sequelize'); const basename = path.basename(__filename); const env = process.env.NODE_ENV || 'development'; -const config = require(__dirname + '/../config/config.json')[env]; +const config = require(__dirname + '/../config/config.js')[env]; const db = {}; let sequelize;