mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-05 03:52:14 +00:00
remove self from group after sending invite, fix #1509
This commit is contained in:
parent
ef972bf70d
commit
29f5eb5293
1 changed files with 1 additions and 0 deletions
|
|
@ -280,6 +280,7 @@ api.invite = function(req, res, next) {
|
|||
invite.save();
|
||||
Group.findById(group._id)
|
||||
.populate('members', partyFields).exec(function(err, saved){
|
||||
removeSelf(saved, res.locals.user);
|
||||
res.json(saved);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue