Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 53f99ae

Browse files
author
Dushyant Bhalgami
committedDec 20, 2019
fix the payload for adding members to group
1 parent 8c70aae commit 53f99ae

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed
 

‎src/services/groups.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,7 @@ class GroupService {
209209
* @return {Promise}
210210
*/
211211
async addMember(groupId, memberId, membershipType) {
212-
const response = await this.private.api.postJson(`/groups/${groupId}/members`, {
213-
param: { memberId, membershipType },
214-
});
215-
212+
const response = await this.private.api.postJson(`/groups/${groupId}/members`, { memberId, membershipType });
216213
return handleApiResponse(response);
217214
}
218215

0 commit comments

Comments
 (0)
Please sign in to comment.