Skip to content

Commit f75b43c

Browse files
authored
Merge pull request #114265 from PramodValavala-MSFT/patch-111
(AzureCXP) fix js code sample
2 parents ee67b7b + 9ad6aa3 commit f75b43c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

articles/azure-functions/functions-bindings-storage-queue-output.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Here's the *function.json* file:
119119
{
120120
"type": "queue",
121121
"direction": "out",
122-
"name": "$return",
122+
"name": "myQueueItem",
123123
"queueName": "outqueue",
124124
"connection": "MyStorageConnectionAppSetting"
125125
}
@@ -133,7 +133,8 @@ Here's the JavaScript code:
133133

134134
```javascript
135135
module.exports = function (context, input) {
136-
context.done(null, input.body);
136+
context.bindings.myQueueItem = input.body;
137+
context.done();
137138
};
138139
```
139140

0 commit comments

Comments
 (0)