mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
properly update user properties in events
This commit is contained in:
@@ -24,7 +24,7 @@ export default async function reroll (user, tasks = [], req = {}, analytics) {
|
||||
|
||||
if (analytics) {
|
||||
analytics.track('Fortify Potion', {
|
||||
user: pick(user, ['preferences', 'registeredThrough']),
|
||||
user,
|
||||
uuid: user._id,
|
||||
currency: 'Gems',
|
||||
gemCost: 4,
|
||||
|
||||
Reference in New Issue
Block a user