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 authored and GitHub committed 2025-09-11 07:29:47 +00:00
1 parent 823a5c75ff
commit 0700a2448c
2 files changed
+7 -5

No files matched your search

+5
View File
@@ -0,0 +1,5 @@
---
"@medusajs/utils": patch
---
chore(): Remove extra manager fork
@@ -64,11 +64,8 @@ export class MikroOrmBase {
transaction?: TManager transaction?: TManager
} = {} } = {}
): Promise<any> { ): Promise<any> {
const freshManager = this.getFreshManager this.manager_.global = true
? this.getFreshManager() return await transactionWrapper(this.manager_, task, options).catch(
: this.manager_
return await transactionWrapper(freshManager, task, options).catch(
dbErrorMapper dbErrorMapper
) )
} }