Skip to content

Commit 6545aef

Browse files
authored
Fix broken code snippet with wrong variable name
The javascript sample used `durableOrchestrationStatus` to initially store the return value, but later used `status` to refer to same variable.
1 parent 31bd0fd commit 6545aef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/azure-functions/durable/durable-functions-custom-orchestration-status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module.exports = async function(context, req) {
128128
context.log(`Started orchestration with ID = '${instanceId}'.`);
129129

130130
let durableOrchestrationStatus = await client.getStatus(instanceId);
131-
while (status.customStatus.toString() !== "London") {
131+
while (durableOrchestrationStatus.customStatus.toString() !== "London") {
132132
await new Promise((resolve) => setTimeout(resolve, 200));
133133
durableOrchestrationStatus = await client.getStatus(instanceId);
134134
}

0 commit comments

Comments
 (0)