chore: Cleanup manager decorator usage (#9181)

This commit is contained in:
Adrien de Peretti
2024-09-18 14:16:20 +02:00
committed by GitHub
parent adbeb9cc1d
commit 81d3ae01c7
20 changed files with 362 additions and 359 deletions
@@ -62,7 +62,7 @@ export default class SalesChannelModuleService
sharedContext?: Context
): Promise<SalesChannelDTO>
@InjectManager("baseRepository_")
@InjectManager()
async createSalesChannels(
data: CreateSalesChannelDTO | CreateSalesChannelDTO[],
@MedusaContext() sharedContext: Context = {}
@@ -79,7 +79,7 @@ export default class SalesChannelModuleService
)
}
@InjectTransactionManager("baseRepository_")
@InjectTransactionManager()
async createSalesChannels_(
data: CreateSalesChannelDTO[],
@MedusaContext() sharedContext: Context
@@ -99,7 +99,7 @@ export default class SalesChannelModuleService
sharedContext?: Context
): Promise<SalesChannelDTO[]>
@InjectManager("baseRepository_")
@InjectManager()
async updateSalesChannels(
idOrSelector: string | FilterableSalesChannelProps,
data: UpdateSalesChannelDTO | UpdateSalesChannelDTO[],
@@ -134,7 +134,7 @@ export default class SalesChannelModuleService
)
}
@InjectTransactionManager("baseRepository_")
@InjectTransactionManager()
async updateSalesChannels_(
data: UpdateSalesChannelDTO[],
sharedContext: Context
@@ -150,7 +150,7 @@ export default class SalesChannelModuleService
data: UpsertSalesChannelDTO,
sharedContext?: Context
): Promise<SalesChannelDTO>
@InjectTransactionManager("baseRepository_")
@InjectTransactionManager()
async upsertSalesChannels(
data: UpsertSalesChannelDTO | UpsertSalesChannelDTO[],
@MedusaContext() sharedContext: Context = {}