Skip to content

Commit

Permalink
fix: resolve sorting bug for several mongo vesions with typeorm migra…
Browse files Browse the repository at this point in the history
…tion (#5121)

Closes #5115
  • Loading branch information
arnaudvangelderIBM authored and pleerock committed Nov 22, 2019
1 parent 0a809ac commit cb771a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/migration/MigrationExecutor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ export class MigrationExecutor {
.db(this.connection.driver.database!)
.collection(this.migrationsTableName)
.find<Migration>()
.sort("_id", -1)
.sort({"_id": -1})
.toArray();
} else {
const migrationsRaw: ObjectLiteral[] = await this.connection.manager
Expand Down

0 comments on commit cb771a1

Please sign in to comment.