From: Laurence Maultsby Date: Fri, 21 Apr 2017 15:05:40 +0000 (-0400) Subject: Project update now updates on project-config X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=75a3c0cc557df2f51a79f9ee0bd61e037f4ada63;p=osm%2FUI.git Project update now updates on project-config Signed-off-by: Laurence Maultsby --- diff --git a/skyquake/framework/core/modules/api/projectManagementAPI.js b/skyquake/framework/core/modules/api/projectManagementAPI.js index c00de3240..feedfc220 100644 --- a/skyquake/framework/core/modules/api/projectManagementAPI.js +++ b/skyquake/framework/core/modules/api/projectManagementAPI.js @@ -107,13 +107,11 @@ ProjectManagement.update = function(req) { var self = this; var api_server = req.query['api_server']; var bodyData = req.body; - data = { - "project":[bodyData] - } + data = bodyData['project-config'] var updateTasks = []; var updateUser = rp({ - uri: utils.confdPort(api_server) + '/api/config/project', + uri: utils.confdPort(api_server) + '/api/config/project/' + bodyData.name + '/project-config', method: 'PUT', headers: _.extend({}, constants.HTTP_HEADERS.accept.data, { 'Authorization': req.session && req.session.authorization