From 5bfd6c3b0a2d8f3357f95f58dea7bb76ee7dbe28 Mon Sep 17 00:00:00 2001 From: Laurence Maultsby Date: Fri, 21 Apr 2017 11:11:43 -0400 Subject: [PATCH] Variables renamed in projectManagementAPI.js Signed-off-by: Laurence Maultsby --- .../framework/core/modules/api/projectManagementAPI.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.17.1