remove un-needed code

This commit is contained in:
Matteo Pagliazzi
2020-04-20 23:48:48 +02:00
parent 4fa381f153
commit 6a70487fa6

View File

@@ -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, {});
},