Skip to content

Commit 6d020c8

Browse files
authored
Merge pull request #205411 from mumurug-MSFT/patch-2
(AzureCXP) fixes MicrosoftDocs/azure-docs#95908
2 parents a7b8aed + 83c50f7 commit 6d020c8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-functions/functions-add-output-binding-cosmos-db-vs-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Add code that uses the `outputDocument` output binding object on `context.bindin
265265
if (name) {
266266
context.bindings.outputDocument = JSON.stringify({
267267
// create a random ID
268-
id: new Date().toISOString() + Math.random().toString().substr(2,8),
268+
id: new Date().toISOString() + Math.random().toString().substring(2, 10),
269269
name: name
270270
});
271271
}
@@ -285,7 +285,7 @@ module.exports = async function (context, req) {
285285
if (name) {
286286
context.bindings.outputDocument = JSON.stringify({
287287
// create a random ID
288-
id: new Date().toISOString() + Math.random().toString().substr(2,8),
288+
id: new Date().toISOString() + Math.random().toString().substring(2, 10),
289289
name: name
290290
});
291291
}

0 commit comments

Comments
 (0)