Browse Source

fix(core): Call lifecycle hooks on ChangedPriceHandlingStrategy

Fixes #1916
Michael Bromley 3 years ago
parent
commit
75a695e306
1 changed files with 2 additions and 0 deletions
  1. 2 0
      packages/core/src/config/config.module.ts

+ 2 - 0
packages/core/src/config/config.module.ts

@@ -87,6 +87,7 @@ export class ConfigModule implements OnApplicationBootstrap, OnApplicationShutdo
             orderByCodeAccessStrategy,
             orderByCodeAccessStrategy,
             stockAllocationStrategy,
             stockAllocationStrategy,
             activeOrderStrategy,
             activeOrderStrategy,
+            changedPriceHandlingStrategy,
         } = this.configService.orderOptions;
         } = this.configService.orderOptions;
         const { customFulfillmentProcess } = this.configService.shippingOptions;
         const { customFulfillmentProcess } = this.configService.shippingOptions;
         const { customPaymentProcess } = this.configService.paymentOptions;
         const { customPaymentProcess } = this.configService.paymentOptions;
@@ -122,6 +123,7 @@ export class ConfigModule implements OnApplicationBootstrap, OnApplicationShutdo
             stockDisplayStrategy,
             stockDisplayStrategy,
             ...healthChecks,
             ...healthChecks,
             assetImportStrategy,
             assetImportStrategy,
+            changedPriceHandlingStrategy,
             ...(Array.isArray(activeOrderStrategy) ? activeOrderStrategy : [activeOrderStrategy]),
             ...(Array.isArray(activeOrderStrategy) ? activeOrderStrategy : [activeOrderStrategy]),
         ];
         ];
     }
     }