Skip to content

Commit

Permalink
fix: getPendingMigrations isn't properly working (#6372)
Browse files Browse the repository at this point in the history
getPendingMigrations currently returns the executed migrations instead of the non-executed ones.
  • Loading branch information
axos88 committed Jul 17, 2020
1 parent 54a3a15 commit 7c0da1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migration/MigrationExecutor.ts
Expand Up @@ -90,7 +90,7 @@ export class MigrationExecutor {
const executedMigrations = await this.getExecutedMigrations();

return allMigrations.filter(migration =>
executedMigrations.find(
!executedMigrations.find(
executedMigration =>
executedMigration.name === migration.name
)
Expand Down

0 comments on commit 7c0da1c

Please sign in to comment.