diff options
Diffstat (limited to 'lib/models')
-rw-r--r-- | lib/models/index.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/models/index.js b/lib/models/index.js index 458d5319..0679a7fc 100644 --- a/lib/models/index.js +++ b/lib/models/index.js @@ -3,13 +3,14 @@ var fs = require('fs') var path = require('path') var Sequelize = require('sequelize') +const {cloneDeep} = require('lodash') // core var config = require('../config') var logger = require('../logger') -var dbconfig = config.db -dbconfig.logging = config.debug ? logger.info : false +var dbconfig = cloneDeep(config.db) +dbconfig.logger = config.debug ? logger.info : false var sequelize = null |