aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/api
diff options
context:
space:
mode:
authorPierre Guillot <50145663+pierre-guillot-sonarsource@users.noreply.github.com>2022-10-07 13:58:19 +0200
committersonartech <sonartech@sonarsource.com>2022-10-07 20:03:00 +0000
commitaaadf8992978dbe2c4f7b1a3795c8d627234dc32 (patch)
treeecfd87da7648723ddff7dad66f24070ec587805f /server/sonar-web/src/main/js/api
parent657e8f919836bb5fc6b788eb72897ac639010a84 (diff)
downloadsonarqube-aaadf8992978dbe2c4f7b1a3795c8d627234dc32.tar.gz
sonarqube-aaadf8992978dbe2c4f7b1a3795c8d627234dc32.zip
SONAR-17435 fix SSF-318
Diffstat (limited to 'server/sonar-web/src/main/js/api')
-rw-r--r--server/sonar-web/src/main/js/api/settings.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/api/settings.ts b/server/sonar-web/src/main/js/api/settings.ts
index 6fd866a2a30..20c397eedc6 100644
--- a/server/sonar-web/src/main/js/api/settings.ts
+++ b/server/sonar-web/src/main/js/api/settings.ts
@@ -20,7 +20,7 @@
import { omitBy } from 'lodash';
import { isCategoryDefinition } from '../apps/settings/utils';
import { throwGlobalError } from '../helpers/error';
-import { getJSON, post, postJSON, RequestData } from '../helpers/request';
+import { getJSON, post, RequestData } from '../helpers/request';
import { BranchParameters } from '../types/branch-like';
import {
ExtendedSettingDefinition,
@@ -105,9 +105,9 @@ export function checkSecretKey(): Promise<{ secretKeyAvailable: boolean }> {
}
export function generateSecretKey(): Promise<{ secretKey: string }> {
- return postJSON('/api/settings/generate_secret_key').catch(throwGlobalError);
+ return getJSON('/api/settings/generate_secret_key').catch(throwGlobalError);
}
export function encryptValue(value: string): Promise<{ encryptedValue: string }> {
- return postJSON('/api/settings/encrypt', { value }).catch(throwGlobalError);
+ return getJSON('/api/settings/encrypt', { value }).catch(throwGlobalError);
}