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:
Adrien de Peretti
2025-09-11 09:29:47 +02:00
committed by GitHub
parent 823a5c75ff
commit 0700a2448c
2 changed files with 7 additions and 5 deletions

View File

@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
chore(): Remove extra manager fork

View File

@@ -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
)
}