From a179ba6762cef6e900d2170667ef714acf914a4d Mon Sep 17 00:00:00 2001 From: Jonathan Julian Date: Tue, 14 Nov 2017 00:05:49 -0800 Subject: [PATCH] fix: pass config to sequelize constructor (fixes #584) (#585) --- src/assets/models/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/models/index.js b/src/assets/models/index.js index f1a54964..06e468ad 100644 --- a/src/assets/models/index.js +++ b/src/assets/models/index.js @@ -9,7 +9,7 @@ var config = require(<%= configFile %>)[env]; var db = {}; if (config.use_env_variable) { - var sequelize = new Sequelize(process.env[config.use_env_variable]); + var sequelize = new Sequelize(process.env[config.use_env_variable], config); } else { var sequelize = new Sequelize(config.database, config.username, config.password, config); }