mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 05:37:22 +01:00
Remove user wrapping (#9960)
* remove user wrapping, fixes #9146 * update tests * fix tests
This commit is contained in:
@@ -470,7 +470,7 @@ api.getUserAnonymized = {
|
||||
let user = res.locals.user.toJSON();
|
||||
user.stats.toNextLevel = common.tnl(user.stats.lvl);
|
||||
user.stats.maxHealth = common.maxHealth;
|
||||
user.stats.maxMP = res.locals.user._statsComputed.maxMP;
|
||||
user.stats.maxMP = common.statsComputed(res.locals.user).maxMP;
|
||||
|
||||
delete user.apiToken;
|
||||
if (user.auth) {
|
||||
|
||||
Reference in New Issue
Block a user