chore(): Remove extra manager fork (#13458)
RESOLVE CORE-1182 **What** Remove unnecessary extra manager fork that need reconciliation under the hood
This commit is contained in:
committed by
GitHub
parent
823a5c75ff
commit
0700a2448c
@@ -64,11 +64,8 @@ export class MikroOrmBase {
|
||||
transaction?: TManager
|
||||
} = {}
|
||||
): Promise<any> {
|
||||
const freshManager = this.getFreshManager
|
||||
? this.getFreshManager()
|
||||
: this.manager_
|
||||
|
||||
return await transactionWrapper(freshManager, task, options).catch(
|
||||
this.manager_.global = true
|
||||
return await transactionWrapper(this.manager_, task, options).catch(
|
||||
dbErrorMapper
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user