remove profile object from webhooks

This commit is contained in:
Will
2015-07-03 14:05:50 -07:00
parent b3ae6eef17
commit 4e5d630a87
+1 -1
View File
@@ -119,7 +119,7 @@ api.score = function(req, res, next) {
// Webhooks
// Select character data to send
var userData = _.pick(user.toJSON(), ['_id', '_tmp', 'stats', 'profile']); // user.toJSON to copy-by-value
var userData = _.pick(user.toJSON(), ['_id', '_tmp', 'stats']); // user.toJSON to copy-by-value
userData.stats.toNextLevel = shared.tnl(user.stats.lvl);
userData.stats.maxHealth = shared.maxHealth;
userData.stats.maxMP = user._statsComputed.maxMP;