properly update user properties in events

This commit is contained in:
Phillip Thelen
2025-09-04 12:57:35 +02:00
parent ddba450630
commit 2c7f6fd9e3
36 changed files with 52 additions and 52 deletions

View File

@@ -160,7 +160,7 @@ export default function randomDrop (user, options, req = {}, analytics) {
if (analytics && moment().diff(user.auth.timestamps.created, 'days') < 7) {
analytics.track('dropped item', {
user: pick(user, ['preferences', 'registeredThrough']),
user,
uuid: user._id,
itemKey: drop.key,
category: 'behavior',