From aaadf8992978dbe2c4f7b1a3795c8d627234dc32 Mon Sep 17 00:00:00 2001 From: Pierre Guillot <50145663+pierre-guillot-sonarsource@users.noreply.github.com> Date: Fri, 7 Oct 2022 13:58:19 +0200 Subject: SONAR-17435 fix SSF-318 --- server/sonar-web/src/main/js/api/settings.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'server/sonar-web/src/main/js/api') 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); } -- cgit v1.2.3