mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
call correct method to update user data
This commit is contained in:
@@ -59,7 +59,7 @@ api.updateUserProperties = {
|
|||||||
const { user } = res.locals;
|
const { user } = res.locals;
|
||||||
const properties = req.body;
|
const properties = req.body;
|
||||||
|
|
||||||
res.analytics.track(req.params.eventName, {
|
res.analytics.updateUserData({
|
||||||
user,
|
user,
|
||||||
uuid: user._id,
|
uuid: user._id,
|
||||||
properties,
|
properties,
|
||||||
|
|||||||
Reference in New Issue
Block a user