Skip to content

Fix groups payload sync with develop #152

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 23 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix the payload for adding members to group
  • Loading branch information
Dushyant Bhalgami committed Dec 20, 2019
commit 53f99aecefcf149b017c2cafeebf4f502b279bdf
5 changes: 1 addition & 4 deletions src/services/groups.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ class GroupService {
* @return {Promise}
*/
async addMember(groupId, memberId, membershipType) {
const response = await this.private.api.postJson(`/groups/${groupId}/members`, {
param: { memberId, membershipType },
});

const response = await this.private.api.postJson(`/groups/${groupId}/members`, { memberId, membershipType });
return handleApiResponse(response);
}

Expand Down