docs: fixes to database transaction docs (#10978)
This commit is contained in:
1 parent
ff739045fa
commit
62d543e691
1 file changed
+2
-2
@@ -227,7 +227,7 @@ class HelloModuleService {
|
|||||||
},
|
},
|
||||||
@MedusaContext() sharedContext?: Context<EntityManager>
|
@MedusaContext() sharedContext?: Context<EntityManager>
|
||||||
): Promise<any> {
|
): Promise<any> {
|
||||||
anotherMethod(sharedContext)
|
this.anotherMethod(sharedContext)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -286,7 +286,7 @@ type InjectedDependencies = {
|
|||||||
class HelloModuleService {
|
class HelloModuleService {
|
||||||
protected baseRepository_: DAL.RepositoryService
|
protected baseRepository_: DAL.RepositoryService
|
||||||
|
|
||||||
constructor({ manager }: InjectedDependencies) {
|
constructor({ baseRepository }: InjectedDependencies) {
|
||||||
this.baseRepository_ = baseRepository
|
this.baseRepository_ = baseRepository
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user