diff --git a/docs/content/advanced/backend/price-selection-strategy/override.md b/docs/content/advanced/backend/price-selection-strategy/override.md index 78eaf8b1b1..4f8ee59a31 100644 --- a/docs/content/advanced/backend/price-selection-strategy/override.md +++ b/docs/content/advanced/backend/price-selection-strategy/override.md @@ -39,14 +39,22 @@ export default class MyPriceListStrategy extends AbstractPriceSelectionStrategy You can use services or repositories in the strategy by adding them to the constructor and updating the parameters passed to the `MyPriceListStrategy` constructor in `withTransaction`. For example: ```typescript +import { + AbstractPriceSelectionStrategy, + CustomerService, + IPriceSelectionStrategy, + PriceSelectionContext, + PriceSelectionResult +} from "@medusajs/medusa"; + export default class MyPriceListStrategy extends AbstractPriceSelectionStrategy { - private productsService: ProductService + private customerService: CustomerService constructor({ - productsService + customerService }) { super() - this.productsService = productsService + this.customerService = customerService } withTransaction(manager: EntityManager): IPriceSelectionStrategy { @@ -55,7 +63,7 @@ export default class MyPriceListStrategy extends AbstractPriceSelectionStrategy } return new MyPriceListStrategy({ - productsService: this.productsService + customerService: this.customerService }) } //... diff --git a/www/docs/.yarn/install-state.gz b/www/docs/.yarn/install-state.gz deleted file mode 100644 index 89848dd7bc..0000000000 Binary files a/www/docs/.yarn/install-state.gz and /dev/null differ