Skip to content

Commit

Permalink
Possible fix for #136 (#137)
Browse files Browse the repository at this point in the history
It is a hot fix, may be other checks needed and tests is also needed, but it is working
  • Loading branch information
aliksend authored and dolezel committed Nov 3, 2017
1 parent c3acad7 commit db81bca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/pg-migrate
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ try {
const oldSuppressWarning = process.env.SUPPRESS_NO_CONFIG_WARNING;
process.env.SUPPRESS_NO_CONFIG_WARNING = 1;
const config = require('config'); // eslint-disable-line global-require,import/no-extraneous-dependencies
if (config[argv[configValue]]) {
const db = config[argv[configValue]];
if (config.has(argv[configValue])) {
const db = config.get(argv[configValue]);
readJson(db);
}
process.env.SUPPRESS_NO_CONFIG_WARNING = oldSuppressWarning;
Expand Down

0 comments on commit db81bca

Please sign in to comment.