X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=skyquake%2Fframework%2Fcore%2Fmodules%2Fapi%2FprojectManagementAPI.js;h=25fcebe5ca10ab7f96a3c821b4b338da0d0e5e5f;hb=407555cd9dac9e0dd9889da18082ae275a0a44fd;hp=feedfc2200d0321c1f4c4289cb1c57c1b111f39e;hpb=75a3c0cc557df2f51a79f9ee0bd61e037f4ada63;p=osm%2FUI.git diff --git a/skyquake/framework/core/modules/api/projectManagementAPI.js b/skyquake/framework/core/modules/api/projectManagementAPI.js index feedfc220..25fcebe5c 100644 --- a/skyquake/framework/core/modules/api/projectManagementAPI.js +++ b/skyquake/framework/core/modules/api/projectManagementAPI.js @@ -110,7 +110,7 @@ ProjectManagement.update = function(req) { data = bodyData['project-config'] var updateTasks = []; - var updateUser = rp({ + var updateProject= rp({ uri: utils.confdPort(api_server) + '/api/config/project/' + bodyData.name + '/project-config', method: 'PUT', headers: _.extend({}, constants.HTTP_HEADERS.accept.data, { @@ -121,7 +121,7 @@ ProjectManagement.update = function(req) { rejectUnauthorized: false, resolveWithFullResponse: true }); - updateTasks.push(updateUser) + updateTasks.push(updateProject) return new Promise(function(resolve, reject) { Promise.all([ updateTasks @@ -229,7 +229,7 @@ ProjectManagement.updatePlatform = function(req) { data.user = JSON.parse(data.user) var updateTasks = []; - var updateUser = rp({ + var updatePlatform = rp({ uri: utils.confdPort(api_server) + '/api/config/rbac-platform-config', method: 'PUT', headers: _.extend({}, constants.HTTP_HEADERS.accept.data, { @@ -240,7 +240,7 @@ ProjectManagement.updatePlatform = function(req) { rejectUnauthorized: false, resolveWithFullResponse: true }); - updateTasks.push(updateUser) + updateTasks.push(updatePlatform) return new Promise(function(resolve, reject) { Promise.all([ updateTasks