Skip to content

Commit

Permalink
Removing logging of the ID5 ID untill architecuture finalized
Browse files Browse the repository at this point in the history
  • Loading branch information
SbDove committed Oct 10, 2024
1 parent 8d0c329 commit a49ce15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
8 changes: 2 additions & 6 deletions src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,8 @@ Common.prototype.logId5Id = function (id5Id) {

//Sets user attribute if ID is unsent.
//This function will be updated once the decryption architecture is finalized.
//The ID may need to be sent as custom event.
if (this.id5IdSent === false){
var currentUser = mParticle.Identity.getCurrentUser();
currentUser.setUserAttribute('ID5ID', id5Id);
this.id5IdSent = true;
}
//TO-DO: Log the ID5 ID to correct location

};

Common.prototype.buildPartnerData = function (mParticleUser) {
Expand Down
10 changes: 0 additions & 10 deletions test/src/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,6 @@ describe('ID5 Forwarder', function () {


describe('Common Functions', function() {
it ('should log a user attribute when logId5 is called', function(done) {
mParticle.forwarder.common.logId5Id("testId");

var attributes = mParticle.Identity.getCurrentUser().getAllUserAttributes()

attributes.ID5ID.should.exist;
attributes.ID5ID.should.equal("testId")
done();
});

it ('should build pd when buildPartnerData is called with a user', function(done) {
var user = {
getUserIdentities: function() {
Expand Down

0 comments on commit a49ce15

Please sign in to comment.