Skip to content

Commit

Permalink
refactor: rename workflow to singular
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 18, 2024
1 parent 1d88ad3 commit 39242d6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const createOrdersWorkflowId = "create-orders"
/**
* This workflow creates an order.
*/
export const createOrdersWorkflow = createWorkflow(
export const createOrderWorkflow = createWorkflow(
createOrdersWorkflowId,
(input: WorkflowData<CreateOrderDTO & AdditionalData>) => {
const variantIds = transform({ input }, (data) => {
Expand Down Expand Up @@ -189,3 +189,9 @@ export const createOrdersWorkflow = createWorkflow(
})
}
)

/**
* @deprecated
* Instead use the singular name "createOrderWorkflow"
*/
export const createOrdersWorkflow = createOrderWorkflow
2 changes: 1 addition & 1 deletion packages/core/core-flows/src/order/workflows/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export * from "./create-fulfillment"
export * from "./create-order-change"
export * from "./create-order-change-actions"
export * from "./create-order-payment-collection"
export * from "./create-orders"
export * from "./create-order"
export * from "./create-shipment"
export * from "./decline-order-change"
export * from "./delete-order-change"
Expand Down

0 comments on commit 39242d6

Please sign in to comment.