refactor(medusa): Improve proposal in cartService use arguments to pass to the super
This commit is contained in:
@@ -127,30 +127,8 @@ class CartService extends TransactionBaseService<CartService> {
|
|||||||
lineItemAdjustmentService,
|
lineItemAdjustmentService,
|
||||||
priceSelectionStrategy,
|
priceSelectionStrategy,
|
||||||
}: InjectedDependencies) {
|
}: InjectedDependencies) {
|
||||||
super({
|
// eslint-disable-next-line prefer-rest-params
|
||||||
manager,
|
super(arguments[0])
|
||||||
cartRepository,
|
|
||||||
shippingMethodRepository,
|
|
||||||
lineItemRepository,
|
|
||||||
eventBusService,
|
|
||||||
paymentProviderService,
|
|
||||||
productService,
|
|
||||||
productVariantService,
|
|
||||||
taxProviderService,
|
|
||||||
regionService,
|
|
||||||
lineItemService,
|
|
||||||
shippingOptionService,
|
|
||||||
customerService,
|
|
||||||
discountService,
|
|
||||||
giftCardService,
|
|
||||||
totalsService,
|
|
||||||
addressRepository,
|
|
||||||
paymentSessionRepository,
|
|
||||||
inventoryService,
|
|
||||||
customShippingOptionService,
|
|
||||||
lineItemAdjustmentService,
|
|
||||||
priceSelectionStrategy,
|
|
||||||
})
|
|
||||||
|
|
||||||
this.manager_ = manager
|
this.manager_ = manager
|
||||||
this.shippingMethodRepository_ = shippingMethodRepository
|
this.shippingMethodRepository_ = shippingMethodRepository
|
||||||
|
|||||||
Reference in New Issue
Block a user