mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-14 07:52:15 +00:00
Fixing up commit according to review
This commit is contained in:
parent
a798c4ef08
commit
bcd0915c60
2 changed files with 1 additions and 4 deletions
|
|
@ -128,9 +128,7 @@ export async function createAndPopulateGroup (settings = {}) {
|
|||
|
||||
await Bluebird.all(invitationPromises);
|
||||
|
||||
await Bluebird.all(invitees.map((invitee) => {
|
||||
return invitee.sync();
|
||||
}));
|
||||
await Bluebird.map(invitees, (invitee) => invitee.sync());
|
||||
|
||||
return {
|
||||
groupLeader,
|
||||
|
|
|
|||
|
|
@ -514,7 +514,6 @@ async function _inviteByUUID (uuid, group, inviter, req, res) {
|
|||
}
|
||||
|
||||
userToInvite.invitations.party = {id: group._id, name: group.name, inviter: inviter._id};
|
||||
return userToInvite.save();
|
||||
}
|
||||
|
||||
let groupLabel = group.type === 'guild' ? 'Guild' : 'Party';
|
||||
|
|
|
|||
Loading…
Reference in a new issue