Skip to content

Commit 02ec784

Browse files
Merge pull request #1221 from dapr/alicejgibbons-patch-1
Update orderProcessingWorkflow.ts
2 parents 845749b + 9b20ffd commit 02ec784

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

workflows/javascript/sdk/order-processor/orderProcessingWorkflow.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export const orderProcessingWorkflow: TWorkflow = async function* (ctx: Workflow
8787
tasks.push(approvalEvent);
8888
const timeOutEvent = ctx.createTimer(30);
8989
tasks.push(timeOutEvent);
90-
const winner = ctx.whenAny(tasks);
90+
const winner = yield ctx.whenAny(tasks);
9191

9292
if (winner == timeOutEvent) {
9393
const orderNotification: OrderNotification = {

0 commit comments

Comments
 (0)