Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
tracehelms committed Nov 13, 2023
1 parent 8cc8ea2 commit 305ba9b
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/migration/migrator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,15 +485,9 @@ export class Migrator {
migrations: ReadonlyArray<NamedMigration>,
executedMigrations: ReadonlyArray<string>
): ReadonlyArray<NamedMigration> {
let pendingMigrations: ReadonlyArray<NamedMigration> = []

migrations.forEach((migration) => {
if (!executedMigrations.includes(migration.name)) {
pendingMigrations = [...pendingMigrations, migration]
}
return migrations.filter((migration) => {
return !executedMigrations.includes(migration.name)
})

return pendingMigrations
}

async #resolveMigrations(): Promise<ReadonlyArray<NamedMigration>> {
Expand Down

0 comments on commit 305ba9b

Please sign in to comment.