Skip to content
Snippets Groups Projects
Commit bdba6e4c authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

fix member request accept/reject

parent c10665b7
No related branches found
No related tags found
1 merge request!96Admin: fix rejecting/accepting member requests
Pipeline #180383 passed
...@@ -21,7 +21,8 @@ class CommunityAdminService { ...@@ -21,7 +21,8 @@ class CommunityAdminService {
async acceptUserIntoCommunity(communityID, userID) { async acceptUserIntoCommunity(communityID, userID) {
return await axios.post( return await axios.post(
API_URL + "communities/" + communityID + "/requests", API_URL + "communities/" + communityID + "/requests",
{ params: { userId: userID } } null,
{ headers: tokenHeader(), params: { userId: userID } }
); );
} }
...@@ -29,9 +30,8 @@ class CommunityAdminService { ...@@ -29,9 +30,8 @@ class CommunityAdminService {
async rejectUserFromCommunity(communityID, userID) { async rejectUserFromCommunity(communityID, userID) {
return await axios.patch( return await axios.patch(
API_URL + "communitites/" + communityID + "/requests/reject", API_URL + "communitites/" + communityID + "/requests/reject",
{ null,
params: { userId: userID }, { headers: tokenHeader(), params: { userId: userID } }
}
); );
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment