a few more awaits
This commit is contained in:
parent
a4a8329f69
commit
dad9944e7e
1 changed files with 2 additions and 2 deletions
|
|
@ -118,12 +118,12 @@ export const miRepository = {
|
|||
if (opt.replication) {
|
||||
const queryRunner = this.manager.connection.createQueryRunner('master');
|
||||
try {
|
||||
return this.insertOneImpl(entity, findOptions, queryRunner);
|
||||
return await this.insertOneImpl(entity, findOptions, queryRunner);
|
||||
} finally {
|
||||
await queryRunner.release();
|
||||
}
|
||||
} else {
|
||||
return this.insertOneImpl(entity, findOptions);
|
||||
return await this.insertOneImpl(entity, findOptions);
|
||||
}
|
||||
},
|
||||
async insertOneImpl(entity, findOptions?, queryRunner?) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue