Skip to content

Commit

Permalink
taking ID from EventGrid if present
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffhollan committed Dec 20, 2017
1 parent 946c29b commit 7419af2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RingToCosmos/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module.exports = function (context, req) {
context.log('JavaScript HTTP trigger function processed a request.');

var ringData = req.body[0];
ringData['id'] = utils.generateUUID();
ringData['id'] = ringData['id'] || utils.generateUUID();
context.log(ringData);
context.bindings.ringDocument = JSON.stringify(ringData);

Expand Down

0 comments on commit 7419af2

Please sign in to comment.