Skip to content

Commit

Permalink
Update Segment newsletter param in front-end identify calls
Browse files Browse the repository at this point in the history
Not just the ones on the back-end
  • Loading branch information
anathomical committed Dec 2, 2024
1 parent c0028d9 commit 8eb1991
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def render
{
userType: object.role,
createdAt: object.created_at,
daysSinceJoining: ((Time.current - object.created_at) / 60 / 60 / 24).to_i
daysSinceJoining: ((Time.current - object.created_at) / 60 / 60 / 24).to_i,
subscribedToTeacherNewsletter: object.send_newsletter
}
end
end

0 comments on commit 8eb1991

Please sign in to comment.