Skip to content

Commit 7b1debf

Browse files
authored
fix(wfe): add missing state in inmemory notify on run finished (medusajs#12987)
1 parent ed39a37 commit 7b1debf

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@medusajs/workflow-engine-inmemory": patch
3+
---
4+
5+
fix(wfe): add missing state in inmemory notify on run finished

packages/modules/workflow-engine-inmemory/src/services/workflow-orchestrator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ export class WorkflowOrchestratorService {
213213
eventType: "onFinish",
214214
workflowId,
215215
transactionId: context.transactionId,
216+
state: ret.transaction.getFlow().state as TransactionState,
216217
result,
217218
errors,
218219
})

0 commit comments

Comments
 (0)