mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-17 09:22:19 +00:00
fix #2163 add stats.maxMP in GET /api/v2/user. @russtaylor let me know
if you need it in other locations
This commit is contained in:
parent
fd324fc220
commit
2f4fd2faca
1 changed files with 1 additions and 0 deletions
|
|
@ -144,6 +144,7 @@ api.getUser = function(req, res, next) {
|
|||
var user = res.locals.user.toJSON();
|
||||
user.stats.toNextLevel = shared.tnl(user.stats.lvl);
|
||||
user.stats.maxHealth = 50;
|
||||
user.stats.maxMP = res.locals.user._statsComputed.maxMP;
|
||||
delete user.apiToken;
|
||||
if (user.auth) {
|
||||
delete user.auth.hashed_password;
|
||||
|
|
|
|||
Loading…
Reference in a new issue