Skip to content

Commit

Permalink
fix: pass config to sequelize constructor (fixes #584) (#585)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Julian authored and sushantdhiman committed Nov 14, 2017
1 parent 006c4ec commit a179ba6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/assets/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a179ba6

Please sign in to comment.