Skip to content

Commit

Permalink
fix: getPendingMigrations isn't properly working (typeorm#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 authored and Svetlozar committed Jan 12, 2021
1 parent b1d6efa commit bffb1bc
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 bffb1bc

Please sign in to comment.