fix(spells): some $rootScope.applying action fixes so cast-ending is

immediate instead of waiting on response. Also, slim down party
population to the essentials to avoid RequestEntityTooLarge
This commit is contained in:
Tyler Renelle
2014-01-21 23:04:01 -08:00
parent 9e69d7959f
commit c6f7ab8a5c
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -355,7 +355,7 @@ api.cast = function(req, res) {
case 'user':
async.waterfall([
function(cb){
Group.findOne({type: 'party', members: {'$in': [user._id]}}).populate('members').exec(cb);
Group.findOne({type: 'party', members: {'$in': [user._id]}}).populate('members', 'profile.name stats achievements').exec(cb);
},
function(group, cb) {
// Solo player? let's just create a faux group for simpler code