Skip to content

Commit

Permalink
Call to knex.migrate.currentVersion causes an error #2111 (#2123)
Browse files Browse the repository at this point in the history
  • Loading branch information
koistya authored and elhigu committed Oct 31, 2017
1 parent 7d18837 commit f66b524
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migrate/index.js
Expand Up @@ -92,7 +92,7 @@ export default class Migrator {
// If no migrations have been run yet, return "none".
currentVersion(config) {
this.config = this.setConfig(config);
return this._listCompleted(config)
return this._listCompleted()
.then((completed) => {
const val = max(map(completed, value => value.split('_')[0]));
return (isUndefined(val) ? 'none' : val);
Expand Down

0 comments on commit f66b524

Please sign in to comment.