refactor(medusa): Improve proposal in cartService use arguments to pass to the super

This commit is contained in:
adrien2p
2022-05-02 18:06:09 +02:00
parent ff9ff21487
commit 978ee98dc3

View File

@@ -127,30 +127,8 @@ class CartService extends TransactionBaseService<CartService> {
lineItemAdjustmentService,
priceSelectionStrategy,
}: InjectedDependencies) {
super({
manager,
cartRepository,
shippingMethodRepository,
lineItemRepository,
eventBusService,
paymentProviderService,
productService,
productVariantService,
taxProviderService,
regionService,
lineItemService,
shippingOptionService,
customerService,
discountService,
giftCardService,
totalsService,
addressRepository,
paymentSessionRepository,
inventoryService,
customShippingOptionService,
lineItemAdjustmentService,
priceSelectionStrategy,
})
// eslint-disable-next-line prefer-rest-params
super(arguments[0])
this.manager_ = manager
this.shippingMethodRepository_ = shippingMethodRepository