Skip to content

Commit

Permalink
fix: replaced deprecated insert method with insertOne for MongoDr…
Browse files Browse the repository at this point in the history
…iver in MigrationExecutor. (#7594)
  • Loading branch information
jiho-kr committed May 8, 2021
1 parent 6ebaef8 commit 83fed60
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 @@ -455,7 +455,7 @@ export class MigrationExecutor {
}
if (this.connection.driver instanceof MongoDriver) {
const mongoRunner = queryRunner as MongoQueryRunner;
await mongoRunner.databaseConnection.db(this.connection.driver.database!).collection(this.migrationsTableName).insert(values);
await mongoRunner.databaseConnection.db(this.connection.driver.database!).collection(this.migrationsTableName).insertOne(values);
} else {
const qb = queryRunner.manager.createQueryBuilder();
await qb.insert()
Expand Down

0 comments on commit 83fed60

Please sign in to comment.