fix(workflows-sdk): Fix StepFunction typings and custom step name (#6468)

* fix(workflows=sdk): Fix StepFunction typings and custom step name

* Create smart-nails-switch.md

* fixes

* fixes

* fixes

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
This commit is contained in:
Adrien de Peretti
2024-02-22 11:59:53 +01:00
committed by GitHub
parent 72a17d6cd7
commit f611865553
6 changed files with 42 additions and 47 deletions
@@ -1,9 +1,9 @@
import { CartDTO, CreateCartWorkflowInputDTO } from "@medusajs/types"
import {
WorkflowData,
createWorkflow,
parallelize,
transform,
WorkflowData,
} from "@medusajs/workflows-sdk"
import {
createCartsStep,
@@ -53,6 +53,7 @@ export const createCartWorkflow = createWorkflow(
// TODO: Add line items
// @ts-ignore
const cart = createCartsStep([cartInput])
return cart[0]