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

View File

@@ -2,9 +2,9 @@ import {
TransactionStepsDefinition,
WorkflowManager,
} from "@medusajs/orchestration"
import { OrchestrationUtils, isString } from "@medusajs/utils"
import { isString, OrchestrationUtils } from "@medusajs/utils"
import { ulid } from "ulid"
import { StepResponse, resolveValue } from "./helpers"
import { resolveValue, StepResponse } from "./helpers"
import { proxify } from "./helpers/proxy"
import {
CreateWorkflowComposerContext,
@@ -199,6 +199,7 @@ function applyStep<
...localConfig,
})
ret.__step__ = newStepName
WorkflowManager.update(this.workflowId, this.flow, this.handlers)
return proxify(ret)