Skip to content

Commit

Permalink
fix(core): Fix typo in "transitions" config option name
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jun 11, 2020
1 parent 1c57462 commit 41b07eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions packages/core/src/config/vendure-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export interface OrderProcessOptions<T extends string> {
* state transitions.
*
*/
transtitions?: Partial<Transitions<T | OrderState>>;
transitions?: Partial<Transitions<T | OrderState>>;
/**
* @description
* Define logic to run before a state tranition takes place. Returning
Expand Down Expand Up @@ -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;
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ export class OrderStateMachine {

private initConfig(): StateMachineConfig<OrderState, OrderTransitionData> {
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,
Expand Down

0 comments on commit 41b07eb

Please sign in to comment.