From f52265203f1f7a2a9f2b3d3f8e4df83193d4b77c Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 14 Dec 2018 16:58:46 +0100 Subject: [PATCH] update usage of deprecated WS parameters --- server/sonar-web/src/main/js/api/quality-profiles.ts | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/server/sonar-web/src/main/js/api/quality-profiles.ts b/server/sonar-web/src/main/js/api/quality-profiles.ts index 6706ea9efcd..cbdabad47dd 100644 --- a/server/sonar-web/src/main/js/api/quality-profiles.ts +++ b/server/sonar-web/src/main/js/api/quality-profiles.ts @@ -165,16 +165,12 @@ export function compareProfiles(leftKey: string, rightKey: string): Promise return getJSON('/api/qualityprofiles/compare', { leftKey, rightKey }); } -export function associateProject(profileKey: string, projectKey: string) { - return post('/api/qualityprofiles/add_project', { profileKey, projectKey }).catch( - throwGlobalError - ); +export function associateProject(key: string, project: string) { + return post('/api/qualityprofiles/add_project', { key, project }).catch(throwGlobalError); } -export function dissociateProject(profileKey: string, projectKey: string) { - return post('/api/qualityprofiles/remove_project', { profileKey, projectKey }).catch( - throwGlobalError - ); +export function dissociateProject(key: string, project: string) { + return post('/api/qualityprofiles/remove_project', { key, project }).catch(throwGlobalError); } export interface SearchUsersGroupsParameters { -- 2.39.5