From e543e5e7006140518be311bc7e60687bd9b40778 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Wed, 3 Apr 2024 14:56:45 +0200 Subject: [PATCH] fix(core): Fix edge case with cached tax zone --- .../product-price-applicator/product-price-applicator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core/src/service/helpers/product-price-applicator/product-price-applicator.ts b/packages/core/src/service/helpers/product-price-applicator/product-price-applicator.ts index 890d19cff8..2ba1bc5d3f 100644 --- a/packages/core/src/service/helpers/product-price-applicator/product-price-applicator.ts +++ b/packages/core/src/service/helpers/product-price-applicator/product-price-applicator.ts @@ -76,7 +76,7 @@ export class ProductPriceApplicator { const zones = await this.requestCache.get(ctx, 'allZones', () => this.zoneService.getAllWithMembers(ctx), ); - const activeTaxZone = await this.requestCache.get(ctx, 'activeTaxZone', () => + const activeTaxZone = await this.requestCache.get(ctx, 'activeTaxZone-ppa', () => taxZoneStrategy.determineTaxZone(ctx, zones, ctx.channel, order), ); if (!activeTaxZone) {