Skip to content

Commit

Permalink
feat: ip and agent
Browse files Browse the repository at this point in the history
  • Loading branch information
nevo-david committed Dec 16, 2024
1 parent 21e1689 commit c3fa982
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libraries/nestjs-libraries/src/track/track.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ export class TrackService {
const current_timestamp = Math.floor(new Date() / 1000);

const userData = new UserData();
userData.setClientIpAddress(user?.ip || ip);
userData.setClientUserAgent(user?.agent || agent);
userData.setClientIpAddress(ip || user?.ip || '');
userData.setClientUserAgent(agent || user?.agent || '');
if (fbclid) {
userData.setFbc(fbclid);
}
Expand Down

0 comments on commit c3fa982

Please sign in to comment.