Skip to content

Commit

Permalink
FIX: returning migration from apply()
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael O'Brien committed Nov 15, 2021
1 parent 58b91fa commit 414d97f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 7 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export class Migrate {
The `params.migrations` set to the in-memory migrations or `params.dir` to a migrations directory.
*/
constructor(config = {}, params = {}) {
this.config = config
this.params = params
this.migrations = params.migrations
this.pastMigrations = null
Expand Down Expand Up @@ -99,6 +100,7 @@ export class Migrate {
}
}
}
return migration
}

/* public */
Expand Down

0 comments on commit 414d97f

Please sign in to comment.