aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api/user_groups.ts
diff options
context:
space:
mode:
authorguillaume-peoch-sonarsource <guillaume.peoch@sonarsource.com>2023-11-29 10:04:16 +0100
committersonartech <sonartech@sonarsource.com>2023-11-29 20:02:37 +0000
commitfcd2e450c23ec6be7dfacac336c6f207fd6ebebe (patch)
treeb6aa6f3425de5f3f3e2d6ada01d45ddde9675fc8 /server/sonar-web/src/main/js/api/user_groups.ts
parente59cb53c43904cefe26a777cc8d259018d4b21d8 (diff)
downloadsonarqube-fcd2e450c23ec6be7dfacac336c6f207fd6ebebe.tar.gz
sonarqube-fcd2e450c23ec6be7dfacac336c6f207fd6ebebe.zip
SONAR-21086 Catch errors for new endpoint '/api/v2/authorizations/groups'
Diffstat (limited to 'server/sonar-web/src/main/js/api/user_groups.ts')
-rw-r--r--server/sonar-web/src/main/js/api/user_groups.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/api/user_groups.ts b/server/sonar-web/src/main/js/api/user_groups.ts
index fbb2fb33941..3b8bc579bb0 100644
--- a/server/sonar-web/src/main/js/api/user_groups.ts
+++ b/server/sonar-web/src/main/js/api/user_groups.ts
@@ -18,7 +18,6 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
import axios from 'axios';
-import { axiosToCatch } from '../helpers/request';
import { Group, Paging } from '../types/types';
const GROUPS_ENDPOINT = '/api/v2/authorizations/groups';
@@ -43,7 +42,7 @@ export function updateGroup(
description?: string;
},
) {
- return axiosToCatch.patch(`${GROUPS_ENDPOINT}/${id}`, data);
+ return axios.patch(`${GROUPS_ENDPOINT}/${id}`, data);
}
export function deleteGroup(id: string) {