Skip to content

Commit

Permalink
Merge pull request #38 from Brightspace/awong/US133384-make-telemetry…
Browse files Browse the repository at this point in the history
…-event-construction-more-robust

US133384: Force all Context.Id values to `string` if 'id' exists
  • Loading branch information
mostlyfabulous committed Jan 19, 2022
2 parents 366ce71 + 5b2f132 commit 5bff39c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/eventBody.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class EventBody {
this._context = {};

if (id) {
this._context.Id = id;
this._context.Id = id.toString();
}
if (type) {
this._context.Type = type;
Expand All @@ -45,7 +45,7 @@ export class EventBody {
this._object = {};

if (id) {
this._object.Id = id;
this._object.Id = id.toString();
}
if (type) {
this._object.Type = type;
Expand All @@ -63,7 +63,7 @@ export class EventBody {
this._target = {};

if (id) {
this._target.Id = id;
this._target.Id = id.toString();
}
if (type) {
this._target.Type = type;
Expand Down

0 comments on commit 5bff39c

Please sign in to comment.