refactor: rename workflow to singular (#10134)
This commit is contained in:
1 parent
f5c580a661
commit
2c957c64be
2 files changed
+8
-2
No files matched your search
+7
-1
@@ -88,7 +88,7 @@ export const createOrdersWorkflowId = "create-orders"
|
|||||||
/**
|
/**
|
||||||
* This workflow creates an order.
|
* This workflow creates an order.
|
||||||
*/
|
*/
|
||||||
export const createOrdersWorkflow = createWorkflow(
|
export const createOrderWorkflow = createWorkflow(
|
||||||
createOrdersWorkflowId,
|
createOrdersWorkflowId,
|
||||||
(input: WorkflowData<CreateOrderDTO & AdditionalData>) => {
|
(input: WorkflowData<CreateOrderDTO & AdditionalData>) => {
|
||||||
const variantIds = transform({ input }, (data) => {
|
const variantIds = transform({ input }, (data) => {
|
||||||
@@ -189,3 +189,9 @@ export const createOrdersWorkflow = createWorkflow(
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @deprecated
|
||||||
|
* Instead use the singular name "createOrderWorkflow"
|
||||||
|
*/
|
||||||
|
export const createOrdersWorkflow = createOrderWorkflow
|
||||||
@@ -22,7 +22,7 @@ export * from "./create-fulfillment"
|
|||||||
export * from "./create-order-change"
|
export * from "./create-order-change"
|
||||||
export * from "./create-order-change-actions"
|
export * from "./create-order-change-actions"
|
||||||
export * from "./create-order-payment-collection"
|
export * from "./create-order-payment-collection"
|
||||||
export * from "./create-orders"
|
export * from "./create-order"
|
||||||
export * from "./create-shipment"
|
export * from "./create-shipment"
|
||||||
export * from "./decline-order-change"
|
export * from "./decline-order-change"
|
||||||
export * from "./delete-order-change"
|
export * from "./delete-order-change"
|
||||||
|
|||||||
Reference in new issue
Block a user