mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
use res.respond
This commit is contained in:
@@ -26,7 +26,7 @@ api.getUser = {
|
|||||||
user.stats.maxHealth = common.maxHealth;
|
user.stats.maxHealth = common.maxHealth;
|
||||||
user.stats.maxMP = res.locals.user._statsComputed.maxMP;
|
user.stats.maxMP = res.locals.user._statsComputed.maxMP;
|
||||||
|
|
||||||
return res.json(200, user);
|
return res.respond(200, user);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user