From 41b07ebb66b9362301c185fc2f951e0bb60366e1 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Thu, 11 Jun 2020 22:01:06 +0200 Subject: [PATCH] fix(core): Fix typo in "transitions" config option name --- packages/core/src/config/vendure-config.ts | 5 +++-- .../helpers/order-state-machine/order-state-machine.ts | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/core/src/config/vendure-config.ts b/packages/core/src/config/vendure-config.ts index aeeb95ba59..607bf951e9 100644 --- a/packages/core/src/config/vendure-config.ts +++ b/packages/core/src/config/vendure-config.ts @@ -300,7 +300,7 @@ export interface OrderProcessOptions { * state transitions. * */ - transtitions?: Partial>; + transitions?: Partial>; /** * @description * Define logic to run before a state tranition takes place. Returning @@ -566,7 +566,8 @@ export interface JobQueueOptions { export interface VendureConfig { /** * @description - * + * Configuration for the GraphQL APIs, including hostname, port, CORS settings, + * middleware etc. */ apiOptions: ApiOptions; /** diff --git a/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts b/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts index 4dee6b80b8..fccf03dfe6 100644 --- a/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts +++ b/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts @@ -85,13 +85,13 @@ export class OrderStateMachine { private initConfig(): StateMachineConfig { const { - transtitions, + transitions, onTransitionStart, onTransitionEnd, onTransitionError, } = this.configService.orderOptions.process; - const allTransitions = this.mergeTransitionDefinitions(orderStateTransitions, transtitions); + const allTransitions = this.mergeTransitionDefinitions(orderStateTransitions, transitions); return { transitions: allTransitions,