mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
remove un-needed code
This commit is contained in:
parent
4fa381f153
commit
6a70487fa6
1 changed files with 0 additions and 5 deletions
|
|
@ -858,11 +858,6 @@ api.leaveGroup = {
|
|||
_removeMessagesFromMember(user, group._id);
|
||||
await user.save();
|
||||
|
||||
if (group.type !== 'party') {
|
||||
const guildIndex = user.guilds.indexOf(group._id);
|
||||
if (guildIndex >= 0) user.guilds.splice(guildIndex, 1);
|
||||
}
|
||||
|
||||
if (group.hasNotCancelled()) await group.updateGroupPlan(true);
|
||||
res.respond(200, {});
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue