]> source.dussan.org Git - sonarqube.git/commitdiff
update usage of deprecated WS parameters
authorStas Vilchik <stas.vilchik@sonarsource.com>
Fri, 14 Dec 2018 15:58:46 +0000 (16:58 +0100)
committersonartech <sonartech@sonarsource.com>
Thu, 20 Dec 2018 10:41:49 +0000 (11:41 +0100)
server/sonar-web/src/main/js/api/quality-profiles.ts

index 6706ea9efcdc9cb254151fd54a4a2a5758352efd..cbdabad47ddeb7f9e3ec98367c9f4b07f44c81fd 100644 (file)
@@ -165,16 +165,12 @@ export function compareProfiles(leftKey: string, rightKey: string): Promise<any>
   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 {