Skip to content

Commit

Permalink
fix(config): wrong if condition fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kmsngh committed May 7, 2020
1 parent 17bd644 commit cb61283
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/database/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const config = require(__dirname + "/../../../config/config.json")[env];
const db = {};

let sequelize;
if (config.use_env_variable) {
if (config && config.use_env_variable) {
sequelize = new Sequelize(process.env[config.use_env_variable], config);
} else {
sequelize = new Sequelize(
Expand Down

0 comments on commit cb61283

Please sign in to comment.