Skip to content

Commit

Permalink
Merge pull request #52 from ajinkyapandetekdi/new-all-0.5
Browse files Browse the repository at this point in the history
remove unwanted changes from cData
  • Loading branch information
gouravmore authored Aug 17, 2023
2 parents 7be1116 + a9420d2 commit 4ed330f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/services/telementryService.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@ export const getEventOptions = () => {
buddyUserId = buddyUserDetails.emis_username;
}


const userType = isBuddyLogin ? 'Buddy User' : 'User';
const userId = isBuddyLogin ? emis_username + '/' + buddyUserId : emis_username || 'anonymous'

return {
object: {},
context: {
Expand All @@ -194,13 +198,13 @@ export const getEventOptions = () => {
env: process.env.REACT_APP_env,
uid: `${
isBuddyLogin
? emis_username + ' / ' + buddyUserId
? emis_username + '/' + buddyUserId
: emis_username || 'anonymous'
}`,
cdata: [
{ id: contentSessionId, type: 'ContentSession' },
{ id: playSessionId, type: 'PlaySession' },
{ id: '2.0', type: 'PlayerVersion' },
{ id: userId, type: userType }
],
rollup: {},
},
Expand Down

0 comments on commit 4ed330f

Please sign in to comment.