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

more doc

parent 95a16ec6
No related branches found
No related tags found
1 merge request!168Doc
Pipeline #181882 passed
...@@ -26,7 +26,7 @@ class CommunityAdminService { ...@@ -26,7 +26,7 @@ class CommunityAdminService {
* Accepts a member request. * Accepts a member request.
* @param {Number} communityID the community to accept the request into. * @param {Number} communityID the community to accept the request into.
* @param {Number} userID the user id of the user being accepted into the community. * @param {Number} userID the user id of the user being accepted into the community.
* @returns just the promise. * @returns the response.
*/ */
async acceptUserIntoCommunity(communityID, userID) { async acceptUserIntoCommunity(communityID, userID) {
return await axios.post( return await axios.post(
...@@ -38,9 +38,9 @@ class CommunityAdminService { ...@@ -38,9 +38,9 @@ class CommunityAdminService {
/** /**
* Reject a user's request to join a community. * Reject a user's request to join a community.
* @param {Number} communityID * @param {Number} communityID id of the community to reject the request from.
* @param {*} userID * @param {Number} userID id of the user being rejected.
* @returns * @returns the response.
*/ */
async rejectUserFromCommunity(communityID, userID) { async rejectUserFromCommunity(communityID, userID) {
return await axios.patch( return await axios.patch(
...@@ -52,9 +52,9 @@ class CommunityAdminService { ...@@ -52,9 +52,9 @@ class CommunityAdminService {
/** /**
* Method that kicks a user from a community * Method that kicks a user from a community
* @param {int} communityID the community to remove the user from * @param {Number} communityID the community to remove the user from
* @param {int} userID the user to remove * @param {Number} userID the user to remove
* @returns TODO * @returns the response.
*/ */
async removeUserFromCommunity(communityID, userID) { async removeUserFromCommunity(communityID, userID) {
return await axios.patch( return await axios.patch(
...@@ -71,7 +71,7 @@ class CommunityAdminService { ...@@ -71,7 +71,7 @@ class CommunityAdminService {
/** /**
* Method to delete a community * Method to delete a community
* @param {int} communityID id of the community to delete. * @param {Number} communityID id of the community to delete.
* @returns TODO * @returns TODO
*/ */
async deleteCommunity(communityID) { async deleteCommunity(communityID) {
......
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