Skip to content

Commit

Permalink
fix(api,web): Align segment traits payload (#6628)
Browse files Browse the repository at this point in the history
  • Loading branch information
SokratisVidros authored Oct 4, 2024
1 parent e900c02 commit c8d717a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .source
1 change: 1 addition & 0 deletions apps/web/src/utils/segment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ export class SegmentService {
firstName: user.firstName,
lastName: user.lastName,
avatar: user.profilePicture,
createdAt: user.createdAt,
});
}

Expand Down
6 changes: 4 additions & 2 deletions packages/cli/src/services/analytics.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,12 @@ export class AnalyticService {
this._analytics.identify({
userId: user._id,
traits: {
email: user.email,
name: `${user.firstName || ''} ${user.lastName || ''}`.trim(),
firstName: user.firstName,
lastName: user.lastName,
email: user.email,
created: user.createdAt,
avatar: user.profilePicture,
createdAt: user.createdAt,
},
});
}
Expand Down

0 comments on commit c8d717a

Please sign in to comment.