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;