groups: try to update GroupsCtrl scope to notify of joined / left

groups, not working
This commit is contained in:
Tyler Renelle
2013-09-01 21:31:38 -04:00
parent 9f11d4f70d
commit f5f6c957de
5 changed files with 35 additions and 13 deletions

View File

@@ -188,7 +188,7 @@ api.invite = function(req, res, next) {
invite.save();
Group.findById(group._id)
.populate('members', partyFields).exec(function(err, saved){
res.json(group);
res.json(saved);
});
}