mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-20 12:48:52 +00:00
fix API toNextLvl & maxHealth
This commit is contained in:
parent
6e33878d07
commit
53fdca2f5c
1 changed files with 1 additions and 2 deletions
|
|
@ -396,8 +396,7 @@ api.buy = function(req, res, next) {
|
|||
|
||||
|
||||
api.getUser = function(req, res, next) {
|
||||
var user;
|
||||
user = res.locals.user;
|
||||
var user = res.locals.user.toJSON();
|
||||
user.stats.toNextLevel = algos.tnl(user.stats.lvl);
|
||||
user.stats.maxHealth = 50;
|
||||
delete user.apiToken;
|
||||
|
|
|
|||
Loading…
Reference in a new issue