Skip to content

Commit 126f1ac

Browse files
committed
update the step
1 parent 632eb34 commit 126f1ac

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/component/event.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,11 @@ export const send = mutation({
142142
step,
143143
`Entry ${event.state.stepId} not found when sending event ${event._id} (${name}) in workflow ${args.workflowId}`,
144144
);
145+
step.step.args = { eventId: event._id };
146+
step.step.runResult = args.result;
147+
step.step.inProgress = false;
148+
step.step.completedAt = Date.now();
149+
await ctx.db.replace(step._id, step);
145150
await ctx.db.patch(event._id, {
146151
state: {
147152
kind: "consumed",

0 commit comments

Comments
 (0)