feat(medusa): Simplify the transaction base service (#2007)

**What**
Simplify the transaction base service.

**How**

In fact, it does not need to be template and reduce the extensibility as the type is internally enforce. Now, the type is deduced by this which can be any derived class.
This commit is contained in:
Adrien de Peretti
2022-08-12 09:17:39 +00:00
committed by GitHub
parent cbe2b7f687
commit 79acc38a57
46 changed files with 82 additions and 115 deletions
@@ -7,13 +7,13 @@ import { ISearchService } from "../interfaces"
type InjectedDependencies = {
eventBusService: EventBusService
searchService: ISearchService<never>
searchService: ISearchService
productService: ProductService
}
class SearchIndexingSubscriber {
private readonly eventBusService_: EventBusService
private readonly searchService_: ISearchService<never>
private readonly searchService_: ISearchService
private readonly productService_: ProductService
constructor({