Converted posts tests to async/await syntax and updated tests
This commit is contained in:
@@ -43,6 +43,7 @@ api.createGroup = {
|
||||
user.balance--;
|
||||
user.guilds.push(group._id);
|
||||
} else {
|
||||
if (group.privacy === 'public') throw new NotAuthorized(res.t('partyMustbePrivate'));
|
||||
if (user.party._id) throw new NotAuthorized(res.t('messageGroupAlreadyInParty'));
|
||||
|
||||
user.party._id = group._id;
|
||||
|
||||
Reference in New Issue
Block a user