Browse Source

fix(core): Fix edge case with cached tax zone

Michael Bromley 1 year ago
parent
commit
e543e5e700

+ 1 - 1
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) {