Skip to content

Commit bcbb9bc

Browse files
Update orderProcessingWorkflow.ts
As per @olitomlinson Signed-off-by: Alice Gibbons <[email protected]>
1 parent 4afca5e commit bcbb9bc

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)