From f66b524af71adf434cddc1830fd9b369d2f48a32 Mon Sep 17 00:00:00 2001 From: Konstantin Tarkus Date: Wed, 1 Nov 2017 01:10:26 +0300 Subject: [PATCH] Call to knex.migrate.currentVersion causes an error #2111 (#2123) --- src/migrate/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/migrate/index.js b/src/migrate/index.js index e54bafdc43..72c6eef0d2 100644 --- a/src/migrate/index.js +++ b/src/migrate/index.js @@ -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);