Skip to content

Commit

Permalink
fix: Fixed return on create groups (close #1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
icleitoncosta committed Dec 28, 2022
1 parent c2a3406 commit e60c934
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/controller/groupController.js
Expand Up @@ -52,13 +52,10 @@ export async function createGroup(req, res) {

for (const group of groupNameToArray(name)) {
response = await req.client.createGroup(group, contactToArray(participants));

infoGroup.push({
name: group,
id: response.gid.user,
participants: response.participants.map((user) => {
return { user: Object.keys(user)[0] };
}),
participants: response.participants,
});
}

Expand Down

0 comments on commit e60c934

Please sign in to comment.