fix(medusa): Add module config to transaction base service (#3033)
This commit is contained in:
1 parent
93d0dc1bdc
commit
1547dd8143
4 files changed
+41
-30
No files matched your search
@@ -7,7 +7,8 @@ export abstract class TransactionBaseService {
|
||||
|
||||
protected constructor(
|
||||
protected readonly __container__: any,
|
||||
protected readonly __configModule__?: Record<string, unknown>
|
||||
protected readonly __configModule__?: Record<string, unknown>,
|
||||
protected readonly __moduleDeclaration__?: Record<string, unknown>
|
||||
) {}
|
||||
|
||||
withTransaction(transactionManager?: EntityManager): this {
|
||||
@@ -17,7 +18,8 @@ export abstract class TransactionBaseService {
|
||||
|
||||
const cloned = new (this.constructor as any)(
|
||||
this.__container__,
|
||||
this.__configModule__
|
||||
this.__configModule__,
|
||||
this.__moduleDeclaration__
|
||||
)
|
||||
|
||||
cloned.manager_ = transactionManager
|
||||
|
||||
Reference in new issue
Block a user